Commit | Line | Data |
---|---|---|
36477c24 | 1 | package Time::tm; |
2 | use strict; | |
3 | ||
b75c8c73 MS |
4 | our $VERSION = '1.00'; |
5 | ||
8cc95fdb | 6 | use Class::Struct qw(struct); |
36477c24 | 7 | struct('Time::tm' => [ |
8 | map { $_ => '$' } qw{ sec min hour mday mon year wday yday isdst } | |
9 | ]); | |
10 | ||
11 | 1; | |
12 | __END__ | |
13 | ||
14 | =head1 NAME | |
15 | ||
2ae324a7 | 16 | Time::tm - internal object used by Time::gmtime and Time::localtime |
36477c24 | 17 | |
b133f4ec RS |
18 | =head1 SYNOPSIS |
19 | ||
20 | Don't use this module directly. | |
21 | ||
36477c24 | 22 | =head1 DESCRIPTION |
23 | ||
24 | This module is used internally as a base class by Time::localtime And | |
25 | Time::gmtime functions. It creates a Time::tm struct object which is | |
26 | addressable just like's C's tm structure from F<time.h>; namely with sec, | |
27 | min, hour, mday, mon, year, wday, yday, and isdst. | |
28 | ||
29 | This class is an internal interface only. | |
30 | ||
31 | =head1 AUTHOR | |
32 | ||
33 | Tom Christiansen |