ListTimezones() method #10

Closed
opened 2024-05-19 10:31:00 +02:00 by belka · 0 comments
Owner

It returns a list of the time zones known to the system, just as a list of strings.

ListTimezones(out as timezones);

The list of the time zones can be obtained by reading the contents of the /usr/share/zoneinfo directory or the /usr/share/zoneinfo/zone1970.tab file. Reading the directory may be preferable since the time zone is set by linking /etc/localtime to one of the files in that directory. So it ensures that the target file really exists.

It returns a list of the time zones known to the system, just as a list of strings. ``` ListTimezones(out as timezones); ``` The list of the time zones can be obtained by reading the contents of the `/usr/share/zoneinfo` directory or the `/usr/share/zoneinfo/zone1970.tab` file. Reading the directory may be preferable since the time zone is set by linking `/etc/localtime` to one of the files in that directory. So it ensures that the target file really exists.
belka added the
Kind
enhancement
label 2024-05-19 10:31:00 +02:00
belka added the
Status
fixed
label 2024-06-02 14:58:48 +02:00
belka closed this issue 2024-06-02 14:59:04 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: OSS/slack-timedate#10
No description provided.