NAME
Bot::BasicBot::Pluggable::Module::DateTimeCalc - Calculate date-time operations
VERSION
version 0.02
SYNOPSIS
use Bot::BasicBot::Pluggable::Module::DateTimeCalc;
my $bot = Bot::BasicBot::Pluggable::Module::DateTimeCalc->new( nick => 'TimeBot', '...' );
$bot->run();
DESCRIPTION
A Bot::BasicBot::Pluggable::Module::DateTimeCalc
calculates date-time operations.
METHODS
help()
Show the keyword help text.
said()
Process the date-time calculations.
IRC COMMANDS
source
Return the github repository where this is hosted.
now
Return the current date and time.
localtime
Return the date-time string given an epoch time.
dow
Return the day of the week for the given date-time stamp.
diff
Return a duration string in days, hours, minutes and seconds from two date-time stamps.
{add,sub}_{years,months,days,hours,minutes,seconds}
Add or subtract the the given span from the given date-time stamp.
SEE ALSO
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.