Searched refs:DateTime (Results 1 - 25 of 123) sorted by relevance

12345

/macosx-10.10/CPANInternal-159.1/DateTime-Format-W3CDTF-0.06/examples/
H A Dnow.pl5 use DateTime::Format::W3CDTF;
7 my $dt = DateTime->now;
8 my $format = DateTime::Format::W3CDTF->new;
/macosx-10.10/ruby-106/ruby/test/date/
H A Dtest_date_compat.rb7 assert_equal(DateTime.new, Date.new)
8 assert_equal(DateTime.new(2002,3,19), Date.new(2002,3,19))
9 assert_equal(DateTime.new(2002,3,19, 0,0,0), Date.new(2002,3,19))
10 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0), Date.new(2002,3,19))
11 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0.to_r), Date.new(2002,3,19))
12 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0, Date::GREGORIAN), Date.new(2002,3,19, Date::GREGORIAN))
13 assert_equal(DateTime.new(2002,3,19, 0,0,0, 0, Date::JULIAN), Date.new(2002,3,19, Date::JULIAN))
15 assert(Date.new(2002,3,19) != DateTime.new(2002,3,19, 12,0,0))
16 assert(Date.new(2002,3,19) != DateTime.new(2002,3,19, 0,0,1))
17 assert(Date.new(2002,3,19) === DateTime
[all...]
/macosx-10.10/CPAN-56/Modules/DateTime-0.77/
H A DMakefile1 NAME = DateTime
/macosx-10.10/CPAN-56/Modules/DateTime-1.06/
H A DMakefile1 NAME = DateTime
/macosx-10.10/CPAN-56/Modules/DateTime-Locale-0.45/
H A DMakefile1 NAME = DateTime-Locale
/macosx-10.10/CPAN-56/Modules/DateTime-TimeZone-1.51/
H A DMakefile1 NAME = DateTime-TimeZone
/macosx-10.10/CPAN-56/Modules/DateTime-TimeZone-1.63/
H A DMakefile1 NAME = DateTime-TimeZone
/macosx-10.10/CPAN-56/Modules/MooseX-Types-DateTime-0.07/
H A DMakefile1 NAME = MooseX-Types-DateTime
/macosx-10.10/CPAN-56/Modules/MooseX-Types-DateTime-0.10/
H A DMakefile1 NAME = MooseX-Types-DateTime
/macosx-10.10/CPANInternal-159.1/DateTime-Format-ISO8601-0.07/
H A DBuild.PL4 module_name => 'DateTime::Format::ISO8601',
5 dist_version_from => 'lib/DateTime/Format/ISO8601.pm',
10 DateTime => '0.18',
11 DateTime::Format::Builder => '0.77',
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Builder-0.80/examples/
H A DFall.pm11 package DateTime::Format::Fall;
12 use DateTime::Format::HTTP;
13 use DateTime::Format::Mail;
14 use DateTime::Format::IBeat;
16 use DateTime::Format::Builder (
18 sub { eval { DateTime::Format::HTTP->parse_datetime( $_[1] ) } },
19 sub { eval { DateTime::Format::Mail->parse_datetime( $_[1] ) } },
20 sub { eval { DateTime::Format::IBeat->parse_datetime( $_[1] ) } },
27 print DateTime::Format::Fall->parse_datetime($_)->datetime, "\n";
H A DApache.pm2 # pack age DateTime::Format::Apache;
4 use DateTime::Format::Builder
30 my $lang = DateTime::Language->new( language => 'en' );
44 my $parser = DateTime::Format::Apache->new();
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Builder-0.81/examples/
H A DFall.pm11 package DateTime::Format::Fall;
12 use DateTime::Format::HTTP;
13 use DateTime::Format::Mail;
14 use DateTime::Format::IBeat;
16 use DateTime::Format::Builder (
20 eval { DateTime::Format::HTTP->parse_datetime( $_[1] ) };
23 eval { DateTime::Format::Mail->parse_datetime( $_[1] ) };
26 eval { DateTime::Format::IBeat->parse_datetime( $_[1] ) };
35 print DateTime::Format::Fall->parse_datetime($_)->datetime, "\n";
H A DApache.pm2 # pack age DateTime::Format::Apache;
4 use DateTime::Format::Builder (
29 my $lang = DateTime::Language->new( language => 'en' );
42 my $parser = DateTime::Format::Apache->new();
/macosx-10.10/ruby-106/ruby/test/psych/
H A Dtest_date_time.rb7 dt = DateTime.now
9 assert_match(/DateTime/, yaml)
13 dt = DateTime.now
/macosx-10.10/CPANInternal-159.1/DateTime-Format-ISO8601-0.07/t/
H A D04_legacy_year.t14 use DateTime::Format::ISO8601;
17 is( DateTime::Format::ISO8601->DefaultLegacyYear, 1 );
18 my $iso_parser = DateTime::Format::ISO8601->new;
23 DateTime::Format::ISO8601->DefaultLegacyYear( $n );
24 is( DateTime::Format::ISO8601->DefaultLegacyYear, $n );
25 my $iso_parser = DateTime::Format::ISO8601->new;
30 eval { DateTime::Format::ISO8601->DefaultLegacyYear( $n ) };
35 DateTime::Format::ISO8601->DefaultLegacyYear( 1 );
38 my $iso_parser = DateTime::Format::ISO8601->new( legacy_year => $n );
39 isa_ok( $iso_parser, 'DateTime
[all...]
H A D05_cut_off_year.t14 use DateTime::Format::ISO8601;
19 is( DateTime::Format::ISO8601->DefaultCutOffYear, 49,
21 is( DateTime::Format::ISO8601->new->cut_off_year, 49,
29 DateTime::Format::ISO8601->DefaultCutOffYear( $n );
31 $failed++ unless DateTime::Format::ISO8601->DefaultCutOffYear == $n;
32 $failed++ unless DateTime::Format::ISO8601->new->cut_off_year == $n;
39 eval { DateTime::Format::ISO8601->DefaultCutOffYear( $n ) };
44 DateTime::Format::ISO8601->DefaultCutOffYear( 49 );
53 my $iso_parser = DateTime::Format::ISO8601->new( cut_off_year => $n );
54 $failed++ unless UNIVERSAL::isa( $iso_parser, 'DateTime
[all...]
H A D03_base_datetime.t14 use DateTime;
15 use DateTime::Format::ISO8601;
61 my $dt = DateTime->new( %$params );
64 my $iso_parser = DateTime::Format::ISO8601->new(
67 isa_ok( $iso_parser, 'DateTime::Format::ISO8601' );
71 my $iso_parser = DateTime::Format::ISO8601->new->set_base_datetime(
74 isa_ok( $iso_parser, 'DateTime::Format::ISO8601' );
79 my $iso_parser = DateTime::Format::ISO8601->new(
80 base_datetime => DateTime::Format::ISO8601->parse_datetime( $_->[0] ),
108 my $dt = DateTime
[all...]
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Builder-0.80/t/
H A Dbasic.t7 use DateTime::Format::Builder;
12 eval { DateTime::Format::Builder->new('fnar') };
15 my $obj = eval { DateTime::Format::Builder->new() };
17 isa_ok( $obj, 'DateTime::Format::Builder' );
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Strptime-1.52/t/
H A D007_edge.t6 use DateTime;
7 use DateTime::Format::Strptime;
20 my $parser = DateTime::Format::Strptime->new(
25 isa_ok( $parser, 'DateTime::Format::Strptime' );
27 isa_ok( $parsed, 'DateTime' );
33 my $parser = DateTime::Format::Strptime->new(
37 isa_ok( $parser, 'DateTime::Format::Strptime' );
40 isa_ok( $parsed, 'DateTime' );
47 my $bad_input_test = DateTime::Format::Strptime->new(
62 my $parser = new DateTime
[all...]
H A D004_locale_defaults.t6 use DateTime::Format::Strptime;
7 use DateTime;
8 use DateTime::TimeZone;
9 use DateTime::Locale;
11 my $object = DateTime::Format::Strptime->new(
H A D002_dates.t6 use DateTime::Format::Strptime;
7 use DateTime;
8 use DateTime::TimeZone;
10 my $object = DateTime::Format::Strptime->new(
57 "You don't have the latest DateTime. Older version have a bug whereby 12am and 12pm are shown as 0am and 0pm. You should upgrade.",
59 unless $DateTime::VERSION >= 0.11;
71 "You don't have the latest DateTime::TimeZone. Older versions don't display all time zone information. You should upgrade.",
73 unless $DateTime::TimeZone::VERSION >= 0.13;
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Strptime-1.54/t/
H A D007_edge.t6 use DateTime;
7 use DateTime::Format::Strptime;
20 my $parser = DateTime::Format::Strptime->new(
25 isa_ok( $parser, 'DateTime::Format::Strptime' );
27 isa_ok( $parsed, 'DateTime' );
33 my $parser = DateTime::Format::Strptime->new(
37 isa_ok( $parser, 'DateTime::Format::Strptime' );
40 isa_ok( $parsed, 'DateTime' );
47 my $bad_input_test = DateTime::Format::Strptime->new(
62 my $parser = new DateTime
[all...]
H A D004_locale_defaults.t6 use DateTime::Format::Strptime;
7 use DateTime;
8 use DateTime::TimeZone;
9 use DateTime::Locale;
11 my $object = DateTime::Format::Strptime->new(
/macosx-10.10/CPANInternal-159.1/DateTime-Format-Builder-0.81/lib/DateTime/Format/Builder/Parser/
H A DStrptime.pm1 package DateTime::Format::Builder::Parser::Strptime;
3 $DateTime::Format::Builder::Parser::Strptime::VERSION = '0.81';
10 use DateTime::Format::Strptime 1.04;
13 use DateTime::Format::Builder::Parser::generic;
14 @ISA = qw( DateTime::Format::Builder::Parser::generic );
30 my $strptime = DateTime::Format::Strptime->new(
73 DateTime::Format::Builder::Parser::Strptime - strptime based date parsing
81 my $parser = DateTime::Format::Builder->create_parser(
92 See L<DateTime::Format::Strptime> for more information
99 See L<DateTime
[all...]

Completed in 217 milliseconds

12345