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 getWeekStart: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}  
{{HelpFiles}}
 
<br>


==== DateTime_getWeekStart ====


====DateTime_getWeekStart====
Return the start date of input week


Return the start date of input week
'''Syntax'''


'''Syntax'''
DateTime_getWeekStart(year,week);


DateTime_getWeekStart(year,week);
'''Arguments'''


'''Arguments'''
*year: is number
*week: number


* year: is number
'''Return value'''
* week: number


'''Return value'''
array, in which:


array, in which:
*DateTime_Year
*DateTime_Month
*DateTime_Day
*DateTime_Hour
*DateTime_Minute
*DateTime_Second
*DateTime_MilliSecond
*DateTime_Week
*DateTime_TimeZone: Timezone is login user's time zone


* DateTime_Year
'''Example'''
* DateTime_Month
* DateTime_Day
* DateTime_Hour
* DateTime_Minute
* DateTime_Second
* DateTime_MilliSecond
* DateTime_Week
* DateTime_TimeZone: Timezone is login user's time zone


'''Example'''
''number year = 2009; ''


number year = 2009;
''number week = 23; ''


number week = 23;
''print(DateTime_getWeekStart(year,week)); ''


print(DateTime_getWeekStart(year,week));
''//result: {2009,6,1,0,0,0,00,23,57} ''


//result: {2009,6,1,0,0,0,00,23,57}
'''Availability'''


'''Availability'''
Version 5.7 __NOTOC__ <!-- imported from file: 7543.htm-->


Version 5.7
[[Category:General_Functions]]
__NOTOC__
<!-- imported from file: 7543.htm-->

Latest revision as of 07:43, 21 December 2011




DateTime_getWeekStart

Return the start date of input week

Syntax

DateTime_getWeekStart(year,week);

Arguments

  • year: is number
  • week: number

Return value

array, in which:

  • DateTime_Year
  • DateTime_Month
  • DateTime_Day
  • DateTime_Hour
  • DateTime_Minute
  • DateTime_Second
  • DateTime_MilliSecond
  • DateTime_Week
  • DateTime_TimeZone: Timezone is login user's time zone

Example

number year = 2009;

number week = 23;

print(DateTime_getWeekStart(year,week));

//result: {2009,6,1,0,0,0,00,23,57}

Availability

Version 5.7