Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

StringFromGMTTimeToLocal()

  • Last UpdatedJul 22, 2024
  • 1 minute read

Converts a time value (in seconds since Jan-01-1970) to a particular string representation. This is the same as StringFromTime().

Category

String

Syntax

MessageResult=StringFromGMTTimeToLocal(SecsSince1-1-70,StringType);

Parameters

SecsSince1-1-70

Is converted to the StringType specified and the result is stored in MessageResult.

StringType

Determines the display method:

1 = Displays the date in the same format set from the windows control Panel. (Similar to that displayed for $DateString.)

2 = Displays the time in the same format set from the Windows control Panel. (Similar to that displayed for $TimeString.)

3 = Displays a 24-character string indicating both the date and time: "Wed Jan 02 02:03:55 1993"

4 = Displays the short form for the day of the week: "Wed"

5 = Displays the long form for the day of the week: "Wednesday"

Remarks

Any adjustments necessary due to Daylight Savings Time are automatically applied to the return result. Therefore, it is not necessary to make any manual adjustments to the input value to convert to DST.

Example

This example assumes that the time zone on the local node is Pacific Standard Time (UTC-0800). The UTC time passed to the function is 12:00:00 AM on Friday, 1/2/1970. Since PST is 8 hours behind UTC, the function will return the following results:

StringFromGMTTimeToLocal(86400, 1); ' returns "1/1/1970"

StringFromGMTTimeToLocal(86400, 2); ' returns "04:00:00 PM"

StringFromGMTTimeToLocal(86400, 3); ' returns "Thu Jan 01 16:00:00 1970"

StringFromGMTTimeToLocal(86400, 4); ' returns "Thu"

StringFromGMTTimeToLocal(86400, 5); ' returns "Thursday"

See also

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringFromTimeLocal()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in