You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
777 B
34 lines
777 B
|
|
/.tz.language 0 def
|
|
/.tz.name 1 def
|
|
|
|
/timezones [
|
|
[ "en" "Canada/Pacific" ]
|
|
[ "pt_BR" "America/Sao_Paulo" ]
|
|
[ "bg" "Europe/Sofia" ]
|
|
[ "de" "Europe/Amsterdam" ]
|
|
[ "fr" "Europe/Brussels" ]
|
|
[ "it" "Europe/Amsterdam" ]
|
|
[ "nl_NL" "Europe/Amsterdam" ]
|
|
[ "nl_BE" "Europe/Amsterdam" ]
|
|
[ "pl" "Europe/Belgrade" ]
|
|
[ "pt_PT" "Europe/Lisbon" ]
|
|
[ "ru" "Europe/Moscow" ]
|
|
[ "ro" "Europe/Istanbul" ]
|
|
[ "es" "Europe/Brussels" ]
|
|
[ "uk" "Europe/Kiev" ]
|
|
] def
|
|
|
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
% Get timezone (timezone).
|
|
%
|
|
% Returns timezone for lang
|
|
%
|
|
% ( locale ) ==> ( EEEE/MMMM )
|
|
%
|
|
/lang.gettimezone {
|
|
timezones {
|
|
dup .tz.language get 2 index eq { .tz.name get exch pop exit } { pop } ifelse
|
|
} forall
|
|
} def
|