Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

GetTimeZoneInformation Function

Overview

The GetTimeZoneInformation function returns the computer’s local time shift as bias minutes from GMT or UTC.

Syntax/Parameters

Syntax

string [] = GetTimeZoneInformation ( [string zone] );

Parameters

zone

An optional string specifying the full name of a time zone to retrieve the bias. If omitted, the local time zone is used.

Return Value

Returns a string array with various time zone parameters or an empty array on failure. Use GetLastError to retrieve a formatted error code.

Remarks

An array is returned with information about the current time zone and parameters regarding daylight savings time switch over. The keys are as follows:

  Key Name   Description  
  current_bias   A decimal string representing current time zone bias from UTC.  
  standard_name   Standard time name, verbose, UTF-8. A description for standard time. For example, Eastern Standard Time indicated “EST”. This string can be empty.  
  standard_bias  

The bias value to be used during local time translations that occur during standard time. This member is ignored if a value for the standard_switch_over value is “none”.

This value is added to the value of the current_bias value to form the bias used during standard time. In most time zones, the value of this member is zero.

 
  standard_switch_over  

A text description of the switch over date in the form of the day of the week and time. For example:

First Sunday of November at 02:00 AM

If the switch over is not supported, the value will be “none

 
  daylight_name   Daylight time name, verbose, UTF-8. A description for standard time. For example, Eastern Daylight Time indicated “EDT”. This string can be empty.  
  daylight_bias  

The bias value to be used during local time translations that occur during standard time. This member is ignored if a value for the daylight_switch_over value is “none”.

This value is added to the value of the current_bias value to form the bias used during standard time. In most time zones, the value of this member is zero.

 
  daylight_switch_over  

A text description of the switch over date in the form of the day of the week and time. For example:

 First Monday of March at 02:00 AM

If the switch over is not supported the value will be “none

 

 

This function ignores a locale override for the application.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic