Support > General Discussions

convert epoch time

(1/2) > >>

Script_test:
Hello
have any function to convert epoch time to human readable format?
ty

Support:
Take a peek at  the FORMATDATE() function.

Script_test:
exactly what I'm looking for.

--- Code: ---print NOW

--- End code ---

This function returns the local time expressed as seconds since January 1, 1970, 00:00am. The function does not accept any argument. This function is similar to the function GMTIME but returns the local time instead of the actual GMT.

thanks for your help! ;)
https://en.wikipedia.org/wiki/Unix_time

Support:

--- Code: Script BASIC ---FormatDate("format",time) 
Arguments

format is a string using the formatting characters described in the docs.

time can be NOW or any other number of seconds past Jan. 1, 1970.

It's really easy to do date math in Script BASIC.

Script_test:

--- Quote from: Script_test on October 24, 2016, 08:06:10 AM ---exactly what I'm looking for.

--- Code: ---print NOW

--- End code ---

This function returns the local time expressed as seconds since January 1, 1970, 00:00am. The function does not accept any argument. This function is similar to the function GMTIME but returns the local time instead of the actual GMT.

thanks for your help! ;)
https://en.wikipedia.org/wiki/Unix_time

--- End quote ---

But, How can I get the number of milliseconds ?

Navigation

[0] Message Index

[#] Next page

Go to full version