logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Time::Human - Convert localtime() format to "speaking clock" time

Author

       Simon Cozens, "simon@cpan.org"

Credits

       Simon Cozens (SIMON) for originally creating this module.

       Ricardo SIGNES (RJBS) for being inhumanly patient in waiting for me to apply a one line whitespace
       trimming patch.

       Everyone at the DateTime "Asylum".

Current Maintainer

       Joshua Hoblitt, "jhoblitt@cpan.org"

Description

       This module provides a "vague" rendering of the time into natural language; it's originally intended for
       text-to-speech applications and other speech-based interfaces.

       It's fully internationalised: if you look at the code, you'll see a global variable called
       %Time::Human::templates, which you can fill in for other languages. If you do multinationalise it, please
       send me templates for other languages to be added to future releases. You can set the default language
       via the global variable $Time::Human::Language

       $Time::Human::Evening and $Time::Human::Night decide the hours at which afternoon turns to evening and
       evening turns to night in your culture. For instance, Greeks may want evening to start at 11pm; for
       hackers, evening may start at 3am.

Name

       Time::Human - Convert localtime() format to "speaking clock" time

See Also

       DateTime, DateTime::Format::Human

perl v5.36.0                                       2022-10-21                                         Human(3pm)

Support

       Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for
       more details

Synopsis

         use Time::Human;
         print "The time is now ", humanize(localtime());

Usage

ImportParameters
       This module accepts no arguments to it's "import" method (actually, it doesn't
               even have an import "method").

   Exports
       This module exports a single symbols, the "humanize" function.

See Also