r this part, you just take the current UT time and represent it in
zone terms. That tells you what month to default to.
-zefram
While changing the effective length of a
local day is quite palatable, making a day discontinuous is too big an
inconvenience. Note that this is inconvenient *for people in the zone*,
unlike things like there being no local 12:00, which is inconvenient
*for programmers* and happens all the time.
-zefram
my($tgt_date_str, $zone_name) = @ARGV;
my $zone = DateTime::TimeZone->new(name => $zone_name);
print start_of_day($tgt_date_str, $zone), "Z\n";
-zefram
Eric Brine wrote:
>Thanks. I'll study this. I didn't think dividing by 60, adding 60 and
>subtracting 60 was safe before of leap seconds.
POSIX time, what DateTime calls "epoch" time, doesn't count leap seconds.
Each multiple of 60 corresponds to the top of a UTC minute.
-zefram
Eric Brine wrote:
>00:00:04 <--- Starting from this
You shouldn't be getting such a time at any point in the algorithm I
was proposing.
-zefram
ambiguity) yield more than one offset. Non-existent local times
(skipped due to clocks going forward) yield an empty list without error.
-zefram
fset 2 hours to the west). Historically,
Africa/Casablanca (Morocco) changed 12:00->13:00 in a DST change in 1967.
And Pacific/Kwajalein (part of the Marshall Islands) jumped across the
international date line in the unfashionable direction, repeating 23
hours of 1969-09-30.
-zefram
he earlier
>one (provided the clock is turned back by an hour when switching back).
You can't rely on offset changes, even specifically ones for DST, being of
an hour. Australia/Lord_Howe (Lord Howe Island) does a regular half-hour
DST jump.
-zefram
Binarus wrote:
>Did you memorize the tzfile of 1969 :-)
I looked through the Olson source files. I could also have automated
a search through the compiled zone data.
-zefram
rmat, and all the software I know about, can handle transitions
at any second.
-zefram
whether DST is in effect. Giving both states
of that flag gives you two UT times, which you can then convert back
to local to check whether they come out with the same DST flag state.
This will work for regular DST changes, but not for offset changes that
are unrelated to DST.
-zefram
perls,
and are individually easy to fix, so the problem is still manageable on
those perl versions.)
-zefram
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201702.tar.gz
size: 721268 bytes
md5: e60e2f96eb2c2d501fb4468e5ec8d379
sha1: 8cd2303725b607db99487b31cd934122ef10bd93
Changes from the previous release:
* Olson database version 2017b
I wrote:
>Shortly available from all good CPAN mirrors:
>
> file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201702.tar.gz
I've revived the automatic repackaging which broke back at the 2014h
release, nearly three years ago. It originally broke then because the
new trend to turn
right tool for the job.
-zefram
23 }; return 456; } print z()'
456
$ perl -MTry::Tiny -lwe 'sub z { try { return 123; }; return 456; } print z()'
456
$ perl -MTryCatch -lwe 'sub z { try { return 123; } return 456; } print z()'
123
-zefram
things worse. For subclassing to be the right answer,
the objects of your classes would have to be everything that DateTime
objects are, plus something that you're adding. But one of the things
that DateTime objects are is Gregorian, which your objects are not.
-zefram
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201703.tar.gz
size: 737648 bytes
md5: f9c045c0bbcc24f9e5cb9f164884951b
sha1: a1897682fbd3f7ec0d4dfd88c670a5d8694e404a
Changes from the previous release:
* Olson database version 2017c
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201805.tar.gz
size: 747739 bytes
md5: 23c77b0e3f74758ad1d29e836b4b1dd3
sha1: be3f900c2b8beb518a1eaafa2cec5f178aee81e2
Changes from the previous release:
* Olson database version 2018e
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201802.tar.gz
size: 729629 bytes
md5: 9599533ff132a3622bc622cbaa7d4d72
sha1: 12044d4b72a6cff5fe19f5985390141183f08b9f
Changes from the previous release:
* Olson database version 2018b
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201801.tar.gz
size: 728913 bytes
md5: d37ff1a893c521afba3d2ef7494af45d
sha1: f07f4f450b22c59f7740e70146b9458ef3c343ba
Changes from the previous release:
* Olson database version 2018a
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201803.tar.gz
size: 730796 bytes
md5: 3b8ab43a8f588a532faf40986f825121
sha1: 45a18a0e4747be1396445e01e13d31bf46df25f5
Changes from the previous release:
* Olson database version 2018c
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201806.tar.gz
size: 761285 bytes
md5: 02ad00dbeb0cd3e8175d7678f062289c
sha1: ae3f9ffb9e1b3f2d282bd8b1cd75be9f2ed3ad0a
Changes from the previous release:
* Olson database version 2018f
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201807.tar.gz
size: 764928 bytes
md5: 616ac029cbf91238b8279c15927ef10c
sha1: af5f4098a1c4c2e5cd515fa6717fbba1722ba6f5
Changes from the previous release:
* Olson database version 2018g
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201808.tar.gz
size: 778286 bytes
md5: 6d160f33659c27e788fea6c99821c046
sha1: cc1a48e43bd43ce217a8d4887b422252156db27c
Changes from the previous release:
* Olson database version 2018h
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201809.tar.gz
size: 778806 bytes
md5: 0be3d73258dcc6ce3e695f06fbd7d5c3
sha1: d85dbedca1f4c1a53faccc6c8e3f8a685e3717ef
Changes from the previous release:
* Olson database version 2018i
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201901.tar.gz
size: 783469 bytes
md5: 409c69258d5ed63f134d0f80454baf57
sha1: 2d045e8a27c6444d5b96bc32b59f46da70729566
Changes from the previous release:
* Olson database version 2019a
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201902.tar.gz
size: 790741 bytes
md5: 13ba3af683256e78610d7198d2a6b097
sha1: 460a25632b34ad6d074b1abbc3537abf2710ec48
Changes from the previous release:
* Olson database version 2019b
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201903.tar.gz
size: 799872 bytes
md5: 539cef4a4cbba7800a40dd69b5f3b8ea
sha1: 0a740049a23a1ffa82161649b63ca645e0a4c540
Changes from the previous release:
* Olson database version 2019c
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202001.tar.gz
size: 806724 bytes
md5: 076b0e74277f3c40f139fd29b24bbca4
sha1: 07fb6502cf01b0e6f76f2a0d14f36b31f356631d
Changes from the previous release:
* Olson database version 2020a
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202002.tar.gz
size: 750088 bytes
md5: e3c552ce6eaa65d83bd9bc778d93d56c
sha1: 2e520e2000c20e9478becfdad496e9751268f065
Changes from the previous release:
* Olson database version 2020b
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202003.tar.gz
size: 751008 bytes
md5: 9337589dd5ca3482eec4e84e6bdb31d6
sha1: 2c023ee079e93c68ea833b502654eac8ea6f6ea3
Changes from the previous release:
* Olson database version 2020c
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202004.tar.gz
size: 752210 bytes
md5: 89639f92b77676aa60c46d87ee0462ab
sha1: b362be449e0d10d4141fb9553c59da89109f584e
Changes from the previous release:
* Olson database version 2020d
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202006.tar.gz
size: 765335 bytes
md5: a0e9272e175772ac571b9e4c0494dff6
sha1: d4ae70d560979545071e6ac7dff24a0afe90816e
Changes from the previous release:
* Olson database version 2020f
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202005.tar.gz
size: 765139 bytes
md5: 04a8778d23734a86fea8966bab865e72
sha1: c635bb24b2b515268d3a93aad850e94eda20746b
Changes from the previous release:
* Olson database version 2020e
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202101.tar.gz
size: 765257 bytes
md5: 87d3365828cc874464e4da79dee03f4d
sha1: ba94229fb25886df0025540c4ae8b61a3853e8e0
Changes from the previous release:
* Olson database version 2021a
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202102.tar.gz
size: 781095 bytes
md5: 89f437d5b14e666994009f46efbacb23
sha1: 642e5fc40d039d8d76a03c31c37ed30ad9716b9c
Changes from the previous release:
* Olson database version 2021b
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202301.tar.gz
size: 815719 bytes
md5: f56223e008a3fac5204f1397b422df23
sha1: b825d51ea304834f5d2fb827260aa67e70fff1f6
Changes from the previous release:
* Olson database version 2023a
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202302.tar.gz
size: 816095 bytes
md5: 59b8490bbf0eca46ce597a15f9d0b555
sha1: 779b9933c8c4256e670d389f23ac9ddcb0fdcc33
Changes from the previous release:
* Olson database version 2023b
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202303.tar.gz
size: 817161 bytes
sha256: 6228e749b7c0509c023fe2b20991ad134c79ab4fcf5ae7d8fcfa536535a1f08c
Changes from the previous release:
* Olson database version 2023c: 351 canonical
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202304.tar.gz
size: 828180 bytes
sha256: 6840f0b6b9c53405632a443c86a5d6b362b47a151a5934316c0e864d3d07aff0
Changes from the previous release:
* Olson database version 2023d: 352 canonical
Shortly available from all good CPAN mirrors:
file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.202401.tar.gz
size: 830162 bytes
sha256: 2b20e5053cb67512c704d6e712289a99c1c5d4003f57b34e21fb6152e1a1969f
Changes from the previous release:
* Olson database version 2024a: 352 canonical
201 - 242 of 242 matches
Mail list logo