Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DateTime getByYMD: Difference between revisions

From Catglobe Wiki
jrfconvert import
 
Cg_pham (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:HelpBooks]]
[[Category:General_Functions]]





Revision as of 08:49, 21 March 2011



DateTime_getByYMD

Return datetime which is get by YMD

Syntax

DateTime_getByYMD(year, month, day[, hour, minute, second][, timeZoneId])

Arguments

  • year: is number
  • month: is number
  • day: is number
  • hour: is number
  • minute: is number
  • second: is number
  • timeZoneId: is number

Return value

array, in which there are 9 items:

Index

Data type

Value

DateTime_Year

number

Input value

DateTime_Month

number

Input value

DateTime_Day

number

Input value

DateTime_Hour

number

Input value (0 if it is not specified)

DateTime_Minute

number

Input value (0 if it is not specified)

DateTime_Second

number

Input value (0 if it is not specified)

DateTime_Millisecond

number

0

DateTime_Week

number

Depend on year, day, month

DateTime_TimeZone

number

Input value (login user's time zone if it is not specified)

Example

array a = DateTime_getByYMD(1985,12,24); print(a);

Or array a = DateTime_getByYMD(1985,12,24,23,59,59); print(a);

//Return array has 9 items:

// {1985,12,24,00,00,00,00,52,57}

//Or

// {1985,12,24,23,59,59,00,52,57}

Availability

Version 5.7