Index: pages/lang_datefunc.in ================================================================== --- pages/lang_datefunc.in +++ pages/lang_datefunc.in @@ -51,11 +51,11 @@ ^The datetime() function returns the date and time as text in their same formats: YYYY-MM-DD HH:MM:SS.

^(The julianday() function returns the [http://en.wikipedia.org/wiki/Julian_day | Julian day] - the -fractional number of days since noon in Greenwich on November 24, 4714 B.C. +number of days since noon in Greenwich on November 24, 4714 B.C. ([http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar | Proleptic Gregorian calendar]).)^ hd_fragment uepch {unixepoch() function}

^The unixepoch() function returns a unix timestamp - the number of seconds @@ -77,11 +77,11 @@ %d day of month: 00 %f fractional seconds: SS.SSS %H hour: 00-24 %j day of year: 001-366 - %J Julian day number (fractional) + %J Julian day number %m month: 01-12 %M minute: 00-59 %s seconds since 1970-01-01 %S seconds: 00-59 %w day of week 0-6 with Sunday==0 @@ -96,25 +96,22 @@ in terms of strftime():

-
FunctionEquivalent (or nearly) strftime() +
FunctionEquivalent strftime()
date(...) strftime('%Y-%m-%d', ...)
time(...) strftime('%H:%M:%S', ...)
datetime(...) strftime('%Y-%m-%d %H:%M:%S', ...) -
julianday(...) strftime('%J', ...)  (inexact) -
unixepoch(...) strftime('%s', ...)  (inexact) +
julianday(...) strftime('%J', ...) +
unixepoch(...) strftime('%s', ...)
)^

-The main reasons for providing functions other than strftime() are -for convenience and for efficiency. The julianday() and unixepoch() -functions return real and integer values respectively, and do not -incur the format conversion costs or inexactitude resulting from use -of the '%J' or '%s' format specifiers with the strftime() function. +The only reasons for providing functions other than strftime() is +for convenience and for efficiency.

Time Values

^(A time value can be in any of the following formats shown below.