LassoScript Utility
Basics Browse Detail

[Date_GetLocalTimeZone]

Tag Link [Date_GetLocalTimeZone] Category Date
Type Substitution Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Date_GetLocalTimeZone] returns the local time zone.

The return value is a string in the form +hhmm or -hhmm where the hh portion represents the number of hours from GMT the current server is located and the mm portion represents any partial offset.

For example, Pacific Daylight Time in the United States is -0800 representing an 8 hour offset from Greenwich Mean Time.

Syntax

[Date_GetLocalTimeZone]
[Date_GetLocalTimeZone: -Long]

Parameters

Optional Parameters
-Long Returns the name of the time zone (e.g. PDT).

Examples

To return the time zone of the current Web server:

Use the [Date_GetLocalTimeZone] tag. The following output shows the result for a server located in the Pacific Time Zone of the United States during Daylight Savings Time.

[Date_GetLocalTimeZone: (Date)]

-0800