PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV, WINDEV Mobile 23 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
EpochToDateTime (Function)
In French: EpochVersDateHeure
Converts a date and a time in Epoch format (number of time units since 01/01/1970 at 00h00 UTC) into a local date-time.
Example
// Displays "20170726100941000" (in France)
Info(EpochToDateTime("1501056581"))
Syntax
<Result> = EpochToDateTime(<Epoch Date-Time> [, <Conversion Options>])
<Result>: Character string
Local date and time resulting from the conversion. Can correspond to:
  • a DateTime variable.
  • a character string in YYYYMMDDHHMMSSLLL format (YYYY corresponds to the year, MM to the month, DD to the day, HH to the hour, MM to the minutes, SS to the seconds and LLL to the milliseconds).
  • an empty string ("") if an error occurred.
<Epoch Date-Time>: 8-byte integer
Date and time in Epoch format (number of time units since 01/01/1970 at 00h00 UTC) to convert.
<Conversion Options>: Optional Integer constant
Options for converting the date and time:
epochUnixMillisecondThe date-time in Epoch format is expressed in milliseconds from 01/01/1970 at 00h00 UTC (time 0 in Unix).
epochUnixSecond
(default value)
The date-time in Epoch format is expressed in seconds from 01/01/1970 at 00h00 UTC (time 0 in Unix).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Linux wd230std.so
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment