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

Application Server

StringFromTimeLocal()

  • Last UpdatedJul 22, 2024
  • 1 minute read

Converts a time value (in seconds since Jan-01-1970) into a particular string representation. The value returned also represents local time.

Category

String

Syntax

MessageResult=StringFromTimeLocal(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 will automatically be applied to the return result. Therefore, it is not necessary to make any manual adjustments for DST to the input value.

Example

StringFromTimeLocal (86400, 1); ' returns "1/2/1970"

StringFromTimeLocal (86400, 2); ' returns "12:00:00 AM"

StringFromTimeLocal (86400, 3); ' returns "Fri Jan 02 00:00:00 1970"

StringFromTimeLocal (86400, 4); ' returns "Fri"

StringFromTimeLocal (86400, 5); ' returns "Friday"

See also

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

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