GetTime (Magic xpi 4.6)
Accepts one DateTime string and returns the time section of the input value in Alpha format.
Syntax:
|
GetTime(Alpha datetime, Numeric format)
|
Parameter:
|
datetime: DateTime expression.
|
|
format:
|
1. YYYY-MM-DDThh:mm:ssTZD (XML format).
|
|
|
2. CYYDDD (JDE Julian format), where C is the century (0=1900 and 1=2000), YY is the year and DDD the day of the year.
|
Returns:
|
Time section of input datetime value in Alpha format.
|
Examples:
|
XML format:
|
GetTime('2008-04-29T10:45:30+5:30',1) returns 10:45:30.
|
|
JDE Julian format:
|
GetTime('111081',2) returns 10:45:30.
|
See also:
|
How Do I Calculate an XML DateTime Format?, How Do I Calculate a Julian Date?
|