Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed Feb 9, 2024
1 parent 120219b commit a218ab5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Revision history for DateTime-US
{{$NEXT}}
- Add new method to provide DST begin/end DateTimes for a year
and US timezone


0.1.2 2024-01-28T20:50:39-06:00
- Add 3-OS tests
Expand Down
2 changes: 1 addition & 1 deletion META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build-depends": [
],
"depends": [
"Date::Utils",
"Timezones::US"
],
"description": "Provides time zone and Daylight Saving Time (DST) infomation for US states and territories",
Expand All @@ -22,7 +23,6 @@
"time date us zones dst"
],
"test-depends": [
"Test",
"IO::Capture::Simple"
],
"version": "0.1.2"
Expand Down
5 changes: 5 additions & 0 deletions dev/run.raku
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ use lib <../lib>;
use DateTime::US;

my $tz = DateTime::US.new: :timezone('cst');
dd $tz;

say $tz.begin-dst;

=finish

=begin comment
my $lt-format = sub ($self) {
Expand Down
2 changes: 1 addition & 1 deletion lib/DateTime/US.rakumod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
unit class DateTime::US;

use Timezones::US;
use Date::Utils;

has $.timezone is required;
has $.name;
Expand Down Expand Up @@ -74,7 +75,6 @@ Update the DST (daylight savings time) module with the desired year
multi method dst-begin(:$year --> DateTime) {
# nth(2) dow(7) in month 3 at 0200 local
my $date = Date.new: :$year, :month(3);

}

multi method dst-end(:$year --> DateTime) {
Expand Down

0 comments on commit a218ab5

Please sign in to comment.