diff --git a/doc/index.html b/doc/index.html index b187d85..967ab6f 100644 --- a/doc/index.html +++ b/doc/index.html @@ -39,10 +39,10 @@ end --> Friday, November 13 2009 --> Friday, August 13 2010

-

2. Limits

2. Limits

  • This module does not recognize leap seconds.
  • It assumes that a day has exactly 24*60*60 seconds.
  • The Lua number must be a double C data type
  • This module supports dates that are greater than Mon Jan 01 1000000 BCE 00:00:00 and less than Mon Jan 01 1000001 00:00:00.
  • see Local time support for local time limts

3. Local time support

- This module also support local time. Local Time is. + This module also supports local time. Local Time is;
Local = UTC + bias
The bias is time zone offset plus the daylight savings if in effect. The bias is retrieve using the Lua function os.date and os.time. @@ -64,9 +64,9 @@ end describe in the date library __call method.

5. Parsable month value

If a function needs a month value it must be a string or a number. - If the value is a string, it must be the name of the month full or abrrieviated. + If the value is a string, it must be the name of the month full or abbreviated. If the value is a number, that number must be 1-12 (January-December). see table below -

Table 1. 

IndexAbbriviationFull Name
1JanJanuary
2FebFebruary
3MarMarch
4AprApril
5MayMay
6JunJune
7JulJuly
8AugAugust
9SepSeptember
10OctOctober
11NovNovember
12DecDecember

+

Table 1. 

IndexAbbreviationFull Name
1JanJanuary
2FebFebruary
3MarMarch
4AprApril
5MayMay
6JunJune
7JulJuly
8AugAugust
9SepSeptember
10OctOctober
11NovNovember
12DecDecember

If the value does not represent month, that is equivalent to passing a nil value.

6. date

The date module.

6.1. Function(s) of date

6.1.1. diff

Subtract the date and time value of two dateObject and returns the resulting dateObject.
Syntax
date.diff(var_date1, var_date2)
Arguments
var_date1
Required. a dateObject or parsable date value
var_date2
Required. a dateObject or parsable date value
Returns
SuccessThe resulting dateObject
Failurenil.
Example
 -- get the days between two dates