Difference between revisions of "DateTime getWeekEnd"

From Catglobe Wiki
Jump to: navigation, search
 
Line 3: Line 3:
  
  
====DateTime_getWeekEnd====
+
==== DateTime_getWeekEnd ====
  
Return the end date of input week
+
Return the end date of input week  
  
'''Syntax'''
+
'''Syntax'''  
  
DateTime_getWeekEnd(year,week);
+
DateTime_getWeekEnd(year,week);  
  
'''Arguments'''
+
'''Arguments'''  
  
* year: is number
+
*year: is number  
* week: number
+
*week: number
  
'''Return value'''
+
'''Return value'''  
  
array, in which:
+
array, in which:  
  
* DateTime_Year
+
*DateTime_Year  
* DateTime_Month
+
*DateTime_Month  
* DateTime_Day
+
*DateTime_Day  
* DateTime_Hour
+
*DateTime_Hour  
* DateTime_Minute
+
*DateTime_Minute  
* DateTime_Second
+
*DateTime_Second  
* DateTime_MilliSecond
+
*DateTime_MilliSecond  
* DateTime_Week
+
*DateTime_Week  
* DateTime_TimeZone: Timezone is login user's time zone
+
*DateTime_TimeZone: Timezone is login user's time zone
  
'''Example'''
+
'''Example'''  
  
number year = 2009;
+
''number year = 2009; ''
  
number week = 23;
+
''number week = 23; ''
  
print(DateTime_getWeekEnd(year,week));
+
''print(DateTime_getWeekEnd(year,week)); ''
  
//result: {2009,6,7,0,0,0,00,23,57}
+
''//result: {2009,6,7,0,0,0,00,23,57} ''
  
'''Availability'''
+
'''Availability'''  
  
Version 5.7
+
Version 5.7 __NOTOC__ <!-- imported from file: 7542.htm-->
__NOTOC__
 
<!-- imported from file: 7542.htm-->
 

Latest revision as of 08:42, 21 December 2011




DateTime_getWeekEnd

Return the end date of input week

Syntax

DateTime_getWeekEnd(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_getWeekEnd(year,week));

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

Availability

Version 5.7