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.

GetDateTimePart: Difference between revisions

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

{{HelpFiles}}


====getDateTimePart====
====getDateTimePart====

Revision as of 08:38, 12 December 2011



getDateTimePart

Returns a part of a specific date

Syntax

getDateTimePart(date, part)

Arguments

date: Is a date with the type of array

part: is an expression with the type of number. It must be one of the built-in constants:

DateTime_Year

DateTime_Month

DateTime_Day

DateTime_Hour

DateTime_Minute

DateTime_Second

DateTime_Millisecond

DateTime_Week

DateTime_TimeZone (only 5.6++)

Return type

number

Examples

number year = getDateTimePart(getDateTime(), DateTime_Year);

print("The current year is " + year);

Availability

Version 4.8