Lasso Soft Inc. > Home

[ date->zoneOffset ]

Method

For the date's timezone, this method returns the raw offset from GMT in milliseconds. This value is dynamically computed based on the timezone and so it is read-only.

  • Syntax
Date Object->zoneOffset
Examples
  • Beginner

To get the zoneoffset of a date object:

Use the [date->zoneOffset] method. The following example creates a date object and then gets the timezone offset and returns its value.

Code

local(d) = date('2011-02-21 08:00:00')
#d->zoneOffset

Result

-18000000

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft