Changeset 2159
- Timestamp:
- 02/02/07 08:21:07
- Files:
-
- misc/worlddate (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
misc/worlddate
r2105 r2159 13 13 'America/New_York', 14 14 'Europe/London', 15 'Europe/Paris',16 'Europe/Berlin',17 'Europe/Rome',18 'Europe/Madrid',19 'Asia/Jakarta',20 'Asia/Bangkok',21 15 'Asia/Taipei', 22 'Asia/Shanghai',23 'Asia/Hong_Kong',24 16 [ 'Asia/Tokyo' ], 25 17 'Australia/Sydney', 26 'Pacific/Auckland',27 18 ); 28 19 … … 36 27 $dt->set_time_zone($tz); 37 28 print color 'yellow' if $color; 38 print $dt->strftime("%Y/%m/%d (%a) %H:%M:%S "), $dt->time_zone->name, ($dt->is_dst ? '*' : ''), "\n"; 29 30 my $offset = $dt->time_zone->offset_for_datetime($dt); 31 print $dt->strftime("%Y/%m/%d (%a) %H:%M:%S "), 32 $dt->time_zone->name, 33 " (", $dt->time_zone->offset_as_string($offset), 34 ($dt->is_dst ? '*' : ''), 35 ")\n"; 39 36 print color 'reset' if $color; 40 37 }