Difference between revisions of "GetUTCDateTime"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
[[Category:General_Functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
+
 
 +
==== getUTCDateTime ====
 +
 
 +
Return user UTC time based on inputted time zone.
  
====getUTCDateTime====
+
'''Syntax'''
  
Return user UTC time based on inputted time zone.
+
getUTCDateTime(date)
  
'''Syntax'''
+
'''Arguments'''  
  
getUTCDateTime(date)
+
date: is a date with type of array
  
'''Arguments'''
+
'''Return type'''  
  
date: is a date with type of array
+
array  
  
'''Return type'''
+
'''Examples'''  
  
array
+
''array a = {2008,12,12,12,12,12,11,50,11};''
  
'''Examples'''
+
''//These are 9 item in array: (Year, Month, Day, Hour, Minute, Second, Millisecond, Week, TimeZone) ''
  
array a = {2008,12,12,12,12,12,11, 50,11};
+
''print(getUTCDateTime(a));''
  
print(getUTCDateTime(a));
+
''// Expected result: {2008,12,13,0,12,12,11,50,0} ''
  
// Expected result: {2008,12,13,0,12,12,11,50,0}
+
'''Availability'''
  
'''Availability'''
+
Version 5.6 __NOTOC__ <!-- imported from file: 5580.htm-->
  
Version 5.6
+
[[Category:General_Functions]]
__NOTOC__
 
<!-- imported from file: 5580.htm-->
 

Latest revision as of 11:44, 21 December 2011



getUTCDateTime

Return user UTC time based on inputted time zone.

Syntax

getUTCDateTime(date)

Arguments

date: is a date with type of array

Return type

array

Examples

array a = {2008,12,12,12,12,12,11,50,11};

//These are 9 item in array: (Year, Month, Day, Hour, Minute, Second, Millisecond, Week, TimeZone)

print(getUTCDateTime(a));

// Expected result: {2008,12,13,0,12,12,11,50,0}

Availability

Version 5.6