utcOffset

Top  Previous  Next

Returns the offset in seconds from GMT for the local computer on a certain day.

Definition

seconds = date.utcOffset( date )

 

Name

Type

Description

seconds

number

seconds offset from UTC for example Florida in winter is -300

date

Date Object

optional date object to specify the date you want to know the offset for. If not given current date is used.

Example

seconds = date.utcOffset( )

print(seconds)

 

Availability

Lua