NAME

App::Manoc::Utils::Datetime - routines for managing timestamps and dates in Manoc

VERSION

version 2.99.2

FUNCTIONS

str2seconds($str)

Parse a string made by an integer and a unit of time (e.g. h for hours, M for months) and returns the equivalent number of seconds.

Convert a unixtime stamp into a "%d/%m/%Y %H:%M:%S" string.

parse_datetime($str)

Parse a timestamp formatted according RFC 33339. Return a Date::Time object.

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.