xref: /openbsd/gnu/usr.bin/perl/lib/Time/tm.pm (revision 3d61058a)
1package Time::tm 1.01;
2use v5.38;
3
4use Class::Struct qw(struct);
5struct('Time::tm' => [
6     map { $_ => '$' } qw{ sec min hour mday mon year wday yday isdst }
7]);
8
9__END__
10
11=head1 NAME
12
13Time::tm - internal object used by Time::gmtime and Time::localtime
14
15=head1 SYNOPSIS
16
17Don't use this module directly.
18
19=head1 DESCRIPTION
20
21This module is used internally as a base class by Time::localtime And
22Time::gmtime functions.  It creates a Time::tm struct object which is
23addressable just like's C's tm structure from F<time.h>; namely with sec,
24min, hour, mday, mon, year, wday, yday, and isdst.
25
26This class is an internal interface only.
27
28=head1 AUTHOR
29
30Tom Christiansen
31