Difference between revisions of "DateTime getByYMD"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
{{HelpFiles}}

 
  
====DateTime_getByYMD====
+
<br>
  
Return datetime which is get by YMD
+
==== DateTime_getByYMD  ====
  
'''Syntax'''
+
Return datetime which is get by YMD
  
DateTime_getByYMD(year, month, day[, hour, minute, second][, timeZoneId])
+
'''Syntax'''
  
'''Arguments'''
+
DateTime_getByYMD(year, month, day[, hour, minute, second][, timeZoneId])
  
* year: is number
+
'''Arguments'''
* month: is number
 
* day: is number
 
* hour: is number
 
* minute: is number
 
* second: is number
 
* timeZoneId: is number
 
  
'''Return value'''
+
*year: is number
 +
*month: is number
 +
*day: is number
 +
*hour: is number
 +
*minute: is number
 +
*second: is number
 +
*timeZoneId: is number
  
array, in which there are 9 items:
+
'''Return value'''
  
{| class="tableintopic" style="border-collapse: collapse; border: 1px solid #010101" width="816" border="1" cellpadding="2"
+
array, in which there are 9 items:  
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" bgcolor="#C0C0C0" |
 
'''Index'''
 
| style="border: 1px solid #010101" width="234" bgcolor="#C0C0C0" |
 
'''Data type'''
 
| style="border: 1px solid #010101" width="396" bgcolor="#C0C0C0" |
 
'''Value'''
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Year
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Month
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Day
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Hour
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value (0 if it is not specified)
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Minute
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value (0 if it is not specified)
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Second
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value (0 if it is not specified)
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Millisecond
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
0
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_Week
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Depend on year, day, month
 
|- align="left" valign="top"
 
| style="border: 1px solid #010101" width="186" |
 
DateTime_TimeZone
 
| style="border: 1px solid #010101" width="234" |
 
number
 
| style="border: 1px solid #010101" width="396" |
 
Input value (login user's time zone if it is not specified)
 
  
'''Example'''
+
{| width="816" cellpadding="2" border="1" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);" class="tableintopic"
 +
|- valign="top" align="left"
 +
| width="186" bgcolor="#c0c0c0" style="border: 1px solid rgb(1, 1, 1);" |
 +
'''Index'''  
  
array a = DateTime_getByYMD(1985,12,24); print(a);
+
| width="234" bgcolor="#c0c0c0" style="border: 1px solid rgb(1, 1, 1);" |
 +
'''Data type'''
  
Or array a = DateTime_getByYMD(1985,12,24,23,59,59); print(a);
+
| width="396" bgcolor="#c0c0c0" style="border: 1px solid rgb(1, 1, 1);" |
 +
'''Value'''
  
//Return array has 9 items:
+
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Year
  
// {1985,12,24,00,00,00,00,52,57}
+
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
  
//Or
+
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value
  
// {1985,12,24,23,59,59,00,52,57}
+
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Month
  
'''Availability'''
+
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
  
Version 5.7
+
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
__NOTOC__
+
Input value
<!-- imported from file: 7538.htm-->
+
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Day
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Hour
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value (0 if it is not specified)
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Minute
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value (0 if it is not specified)
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Second
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value (0 if it is not specified)
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Millisecond
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
0
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_Week
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Depend on year, day, month
 +
 
 +
|- valign="top" align="left"
 +
| width="186" style="border: 1px solid rgb(1, 1, 1);" |
 +
DateTime_TimeZone
 +
 
 +
| width="234" style="border: 1px solid rgb(1, 1, 1);" |
 +
number
 +
 
 +
| width="396" style="border: 1px solid rgb(1, 1, 1);" |
 +
Input value (login user's time zone if it is not specified)
 +
 
 +
|}
 +
 
 +
'''Example'''
 +
 
 +
''array a = DateTime_getByYMD(1985,12,24); ''
 +
 
 +
''print(a); ''
 +
 
 +
''//Return array has 9 items: {1985,12,24,00,00,00,00,52,57}. If Timezone is not specified, it shows login user's time zone. ''
 +
 
 +
''array b = DateTime_getByYMD(1985,12,24,23,59,59); ''
 +
 
 +
''print(b);''
 +
 
 +
''//Return array has 9 items: {1985,12,24,23,59,59,00,52,57}. If Timezone is not specified, it shows login user's time zone ''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.7 __NOTOC__ <!-- imported from file: 7538.htm-->  
 +
 
 +
[[Category:General_Functions]]

Latest revision as of 07:55, 21 December 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);

//Return array has 9 items: {1985,12,24,00,00,00,00,52,57}. If Timezone is not specified, it shows login user's time zone.

array b = DateTime_getByYMD(1985,12,24,23,59,59);

print(b);

//Return array has 9 items: {1985,12,24,23,59,59,00,52,57}. If Timezone is not specified, it shows login user's time zone

Availability

Version 5.7