seconds

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the [long] seconds
seconds()
Synonymssec,secs
Summary

Returns the number of seconds since the start of the eon.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the seconds -- might return 961694002
the long seconds -- might return 961694002.834503
Values
NameTypeDescription
return

The seconds function returns a positive integer. If the long seconds form is used, the seconds function returns a positive number with up to six digits after the decimal point.

RelatedCommand: wait
Function: milliseconds
Control Structure: function
Glossary: event, eon, return, decimal point
Description

Use the seconds function to time events.

The seconds function returns the total number of seconds since midnight, January 1, 1970 GMT.

The long seconds form returns a value with a precision to a millionth of a second. However, this value is not normally accurate past the third decimal place because of processor delays.

Tagsmath