Changeset 24480
- Timestamp:
- 11/20/08 18:15:07 (7 weeks ago)
- Location:
- lang/perl/DateTime-Lite/trunk
- Files:
-
- 1 added
- 2 modified
-
lib/DateTime/Lite.pm (modified) (5 diffs)
-
lib/DateTime/Lite/Strftime.pm (added)
-
t/13strftime.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/DateTime-Lite/trunk/lib/DateTime/Lite.pm
r24476 r24480 267 267 268 268 # We must short circuit for UTC times or else we could end up with 269 # loops between DateTime.pm and DateTime:: TimeZone269 # loops between DateTime.pm and DateTime::Lite::TimeZone 270 270 if ( $self->{tz}->is_utc || $self->{tz}->is_floating ) 271 271 { … … 382 382 } 383 383 384 sub offset { $_[0]->{tz}->offset_for_datetime( $_[0] ) } 385 sub _offset_for_local_datetime { $_[0]->{tz}->offset_for_local_datetime( $_[0] ) } 384 386 385 387 … … 544 546 } 545 547 548 sub week_year { ($_[0]->week)[0] } 549 sub week_number { ($_[0]->week)[1] } 546 550 547 551 sub ymd … … 599 603 sub time_zone { $_[0]->{tz} } 600 604 601 sub offset { $_[0]->{tz}->offset_for_datetime( $_[0] ) }602 sub _offset_for_local_datetime { $_[0]->{tz}->offset_for_local_datetime( $_[0] ) }603 605 604 606 sub is_dst { $_[0]->{tz}->is_dst_for_datetime( $_[0] ) } … … 918 920 DateTime::Lite::TimeZone and DateTime::Lite::Locale have big changes from their original counterparts. 919 921 920 First, you do NOT call new() on these objects (unless this is something you explicitly want to do). Instead, you need to call load(). So if you were mucking with DateTime:: TimeZone and DateTime::Locale, you need to find out every occurance of921 922 DateTime:: TimeZone->new( name => 'Asia/Tokyo' );922 First, you do NOT call new() on these objects (unless this is something you explicitly want to do). Instead, you need to call load(). So if you were mucking with DateTime::Lite::TimeZone and DateTime::Locale, you need to find out every occurance of 923 924 DateTime::Lite::TimeZone->load( name => 'Asia/Tokyo' ); 923 925 924 926 and change them to -
lang/perl/DateTime-Lite/trunk/t/13strftime.t
r24134 r24480 14 14 use Test::More tests => 134; 15 15 16 use DateTime::Lite ;16 use DateTime::Lite qw(Strftime); 17 17 18 18 my $locale = 'en_US';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)