Difference between revisions of "Category:Date/Time Functions"

From Mailutils
Jump to navigationJump to search
(Created page with "Mailutils date/time functions convert date/time between internal and human- or machine-readable representations in various formats. Special functions are provided for date calcu...")
(No difference)

Revision as of 12:14, 17 December 2011

Mailutils date/time functions convert date/time between internal and human- or machine-readable representations in various formats. Special functions are provided for date calculations.

The function prototypes, data type declarations and macro definitions are located in file mailutils/datetime.h[1].

Whenever a function takes year, month or day as its input parameters, the following ranges are assumed:

  • Year is greater than 0 for years AD and less than 0 for years BC.
  • 1 <= month <= 12
  • Days start at 1.

The functions do no take into account the change from Julian to Gregorian calendars, as it occurred in various dates, depending on the country. Hopefully no one would need to go that far back in time when dealing with email timestamps, so that's not considered a limitation.

Notes