Lasso Soft Inc. > Home

[ date->timezone ]

Method

[Date->Timezone] gets or sets the timezone field for a date object.

Getting uses no parameters and returns the timezone value.

Setting requires a string parameter. Setting modifies the date object in-place, but does not return a value.

  • Syntax
Date Object->timezone
Date Object->timezone='Time Zone String'
Examples
  • Beginner

To get or set the timezone field of a date object:

Use the [Date->Timezone] method. The following example uses a date object, gets the timezone, then sets the timezone on the date object and returns its value.

Code

local(d) = date
#d->timezone + '<br>'
#d->timezone='Canada/Central'
#d->timezone

Result

US/Pacific
Canada/Central

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