PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
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) to a local datetime.
Versions 24 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
New in version 24
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Versions 26 and later
Apple Watch This function is now available for Apple Watch applications.
New in version 26
Apple Watch This function is now available for Apple Watch applications.
Apple Watch This function is now available for Apple Watch applications.
Example
// Displays "20170726100941000" (in France)
Info(EpochToDateTime("1501056581"))
Syntax
<Result> = EpochToDateTime(<Epoch datetime> [, <Conversion options>])
<Result>: Character string
Local date and time resulting from the conversion. Can correspond to:
  • a DateTime variable.
  • a character string in YYYYMMDDHHmmSSCCC format (YYYY corresponds to the year, MM to the month, DD to the day, HH to hours, mm to minutes, SS to seconds and CCC to milliseconds).
  • an empty string ("") if an error occurs.
<Epoch datetime>: 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 datetime in Epoch format is expressed in milliseconds since 01/01/1970 at 00h00 UTC (time 0 in Unix).
epochUnixSecond
(default value)
The datetime in Epoch format is expressed in seconds since 01/01/1970 at 00h00 UTC (time 0 in Unix).
Business / UI classification : Neutral code
Component : wd260std.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment