| Acme-Stardate documentation | Contained in the Acme-Stardate distribution. |
Acme::Stardate - Provide a simple 'stardate' string
Version 20081029.16083
use Acme::Stardate;
my $t = stardate();
or from a command line
stardate
The Star Trek TV series started each episode with the stardate. Never mind that they don't make any sense. This module gives you a stardate of your very own. A stardate might be used as a version number.
stardate
Returns a string yyyymmdd.fffff where yyyy is the four digit year, mm is the two digit month, dd is the two digit day of the month and .fffff is the 5 digit fraction of the current day. All times are GMT.
Chris Fedde, <cfedde at cpan.org>
Please report any bugs or feature requests to bug-acme-stardate at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-Stardate. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Acme::Stardate
You can also look for information at:
Copyright 2008 Chris Fedde, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Acme-Stardate documentation | Contained in the Acme-Stardate distribution. |
package Acme::Stardate; use warnings; use strict;
our $VERSION = '20081112.31792';
use Exporter 'import'; our @EXPORT = qw(stardate);
use POSIX 'strftime'; sub stardate { strftime("%Y%m%d.", gmtime). int(time%86400/86400 * 100000) }
1; # End of Acme::Stardate