DateTime::Tiny::Compact - DateTime::Tiny but uses less space
This document describes version 0.001 of DateTime::Tiny::Compact (from Perl distribution DateTime-Tiny-Compact), released on 2017-10-15.
# Create a date manually $christmas = DateTime::Tiny::Compact->new( year => 2006, month => 12, day => 25, hour => 10, minute => 45, second => 0, ); # Show the current date my $now = DateTime::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.
DateTime::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/DateTime-Tiny-Compact.
Source repository is at https://github.com/perlancar/perl-DateTime-Tiny-Compact.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=DateTime-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
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 DateTime::Tiny::Compact, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Tiny::Compact
CPAN shell
perl -MCPAN -e shell install DateTime::Tiny::Compact
For more information on module installation, please visit the detailed CPAN module installation guide.