NAME
is_epoch - Guess if the given string could be an epoch time.
NAME
is_epoch - guess if the given number is an epoch
SYNOPSIS
is_epoch [OPTIONS] number [number ...]
EXAMPLES
Default is Unix time and brief output.
$ ./is_epoch 1234567890
2009-02-13T23:31:30Z
OPTIONS
- --debug
-
Prints extra messages.
- --help
-
Prints a brief help message and exits.
- --man
-
Prints the manual page and exits.
- --max_date=STRING
-
Maximum date to print out. Default is 9999-12-31T23:59:59Z. It's just a string compare, so you can include as little or as much of an ISO-8601 date as you want (e.g., --max_date=2017).
- --min_date=STRING
-
Minimum date to print out. Default is 0001-01-01T00:00:00Z. It's just a string compare, so you can include as little or as much of an ISO-8601 date as you want (e.g., --min_date=2017).
- --output=STRING
-
Output format (as_string or as_json). Default as_string.
- --verbose
-
Prints results in more detail.
DESCRIPTION
is_epoch will guess if any of the conversions from Time::Moment::Epoch gives a reasonable date for the given numbers.
VERSION
version 1.003
AUTHOR
Tim Heaney <heaney@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Tim Heaney.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.