DateTimeX::Tiny::Compact - DateTime::Tiny but uses less space
This document describes version 0.002 of DateTimeX::Tiny::Compact (from Perl distribution DateTimeX-Tiny-Compact), released on 2017-10-19.
# Create a date manually $christmas = DateTimeX::Tiny::Compact->new( year => 2006, month => 12, day => 25, hour => 10, minute => 45, second => 0, ); # Show the current date my $now = DateTimeX::Tiny::Compact->now; print "Year : " . $now->year . "\n"; print "Month : " . $now->month . "\n"; print "Day : " . $now->day . "\n"; print "Hour : " . $now->hour . "\n"; print "Minute : " . $now->minute . "\n"; print "Second : " . $now->second . "\n";
EXPERIMENTAL.
DateTimeX::Tiny::Compact is a fork of DateTime::Tiny. It uses Class::Accessor::PackedString::Set to create objects based on pack()-ed string which is compact.
pack()
Please visit the project's homepage at https://metacpan.org/release/DateTimeX-Tiny-Compact.
Source repository is at https://github.com/perlancar/perl-DateTimeX-Tiny-Compact.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=DateTimeX-Tiny-Compact
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
DateTime::Tiny
Class::Accessor::PackedString::Set
DateTimeX::Duration::Lite
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install DateTimeX::Tiny::Compact, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTimeX::Tiny::Compact
CPAN shell
perl -MCPAN -e shell install DateTimeX::Tiny::Compact
For more information on module installation, please visit the detailed CPAN module installation guide.