Lasso Soft Inc. > Home

[ Date_SetDefaultHour ]

Method

[Date_SetDefaultHour] provides a method to change Lasso's internal default hour from the default of midnight (0). Accepts either a keyword of "noon" or an integer value. Updates the Lasso internal variable for the default hour accordingly.

  • Syntax
date_setdefaulthour(Integer Value)
date_setdefaulthour(-noon)
Examples
  • Beginner

To set the default hour:

Use the [Date_SetDefaultHour] method. The following examples set the Lasso internal variable for the default hour.

Code

date_setdefaulthour(8)  //sets lasso default hour to 8 am
$__date_defhour__ + '<br;>'
date_setdefaulthour(16) //sets lasso default hour to 4 pm
$__date_defhour__ + '<br;>'
date_setdefaulthour(-noon) //sets lasso default hour to 12 noon
$__date_defhour__ + '<br;>'

Result

8
16
12

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