| Line | |
|---|
| 1 | package Time::tm;
|
|---|
| 2 | use strict;
|
|---|
| 3 |
|
|---|
| 4 | our $VERSION = '1.00';
|
|---|
| 5 |
|
|---|
| 6 | use Class::Struct qw(struct);
|
|---|
| 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 |
|
|---|
| 16 | Time::tm - internal object used by Time::gmtime and Time::localtime
|
|---|
| 17 |
|
|---|
| 18 | =head1 SYNOPSIS
|
|---|
| 19 |
|
|---|
| 20 | Don't use this module directly.
|
|---|
| 21 |
|
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.