File: 05_parsing.t

package info (click to toggle)
libclass-date-perl 1.1.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 922; xml: 273; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;
use Test::More;

plan tests => 7;

use Class::Date qw(gmdate);

ok(1);

my $t = gmdate("2008-8-3T11:7:10");

is $t->year, 2008, 'year';
is $t->month, 8,   'month';
is $t->day, 3,     'day';
is $t->hour, 11,   'hour';
is $t->min, 7,     'min';
is $t->second, 10, 'second';