NAME

EBook::Ishmael::Time - Time-handling subroutines for ishmael

SYNOPSIS

use EBook::Ishmael::Time qw(guess_time);

my $t = guess_time("01.14.2025");

DESCRIPTION

EBook::Ishmael::Time is a module that provides various time-handling subroutines for ishmael. This is a private module, please consult the ishmael manual for user documentation.

SUBROUTINES

$epoch = guess_time($str)

guess_time() guesses the timestamp format of $str and returns the number seconds since the Unix epoch, or undef if it could not identify the timestamp format.

$locale = format_locale_time($epoch)

Formats the given time in the preferred format of the current locale.

$rfc3339 = format_rfc3339_time($epoch)

Formats the given time as an RFC3339 timestamp.

AUTHOR

Written by Samuel Young, <samyoung12788@gmail.com>.

This project's source can be found on its Codeberg Page. Comments and pull requests are welcome!

COPYRIGHT

Copyright (C) 2025-2026 Samuel Young

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.