Lasso Soft Inc. > Home

[ date->dst ]

Method

[Date->DST] returns 1 if the date object is in daylight saving time, 0 if the date object is in standard time, or -1 if the date object's status is undetermined.

  • Syntax
Date Object->DST
Examples
  • Beginner

To test whether a date is in daylight saving time:

Use the [Date->DST] method. The following examples test whether a date object is in daylight saving time. For 2011 in the United States, daylight saving time starts at March 13, 2:00 AM.

Code

date('2011-03-12 08:00:00')->dst
date('2011-03-13 08:00:00')->dst

Result

false
true

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