Name : perl-Time-Stamp
| |
Version : 1.300
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.5.1
| Date : 2023-01-27 18:34:08
|
Group : Development/Libraries/Perl
| Source RPM : perl-Time-Stamp-1.300-lp154.5.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : Easy, readable, efficient timestamp functions
|
Description :
This module makes it easy to include timestamp functions that are simple, easy to read, easy to parse, and fast. For simple timestamps perl\'s built-in functions are all you need: perlfunc/time, perlfunc/gmtime (or perlfunc/localtime), and perlfunc/sprintf...
Sometimes you desire a simple timestamp to add to a file name or use as part of a generated data identifier. The fastest and easiest thing to do is call perlfunc/time to get a seconds-since-epoch integer.
Sometimes you get a seconds-since-epoch integer from another function (like perlfunc/stat for instance) and maybe you want to store that in a database or send it across the network.
This integer timestamp works for these purposes, but it\'s not easy to read.
If you\'re looking at a list of timestamps you have to fire up a perl interpreter and copy and paste the timestamp into perlfunc/localtime to figure out when that actually was.
You can pass the timestamp to \'scalar localtime($sec)\' (or \'scalar gmtime($sec)\') but that doesn\'t sort well or parse easily, isn\'t internationally friendly, and contains characters that aren\'t friendly for file names or URIs (or other places you may want to use it).
See the perlport/Time and Date manpage for more discussion on useful timestamps.
For simple timestamps you can get the data you need from perlfunc/localtime and perlfunc/gmtime without incurring the resource cost of the DateTime manpage (or any other object for that matter).
So the aim of this module is to provide simple timestamp functions so that you can have easy-to-use, easy-to-read timestamps efficiently.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |