™.. Time::Seconds - Online Linux Manual PageSection : 3pm
Updated : 2009-04-14
Source : perl v5.10.1
Note : Perl Programmers Reference Guide

NAMETime::Seconds − a simple API to convert seconds to other date values

SYNOPSIS​ use Time::Piece; ​ use Time::Seconds; ​ ​ my $t = localtime; ​ $t += ONE_DAY; ​ ​ my $t2 = localtime; ​ my $s = $t − $t2; ​ ​ print "Difference is: ", $s−>days, "\n";

DESCRIPTIONThis module is part of the Time::Piece distribution. It allows the user to find out the number of minutes, hours, days, weeks or years in a given number of seconds. It is returned by Time::Piece when you delta two Time::Piece objects. Time::Seconds also exports the following constants: ​ ONE_DAY ​ ONE_WEEK ​ ONE_HOUR ​ ONE_MINUTE ​ ONE_MONTH ​ ONE_YEAR ​ ONE_FINANCIAL_MONTH ​ LEAP_YEAR ​ NON_LEAP_YEAR Since perl does not (yet?) support constant objects, these constants are in seconds only, so you cannot, for example, do this: \*(C`print ONE_WEEK\->minutes;\*(C'\fR

METHODSThe following methods are available: ​ my $val = Time::Seconds−>new(SECONDS) ​ $val−>seconds; ​ $val−>minutes; ​ $val−>hours; ​ $val−>days; ​ $val−>weeks; ​ $val−>months; ​ $val−>financial_months; # 30 days ​ $val−>years; The methods make the assumption that there are 24 hours in a day, 7 days in a week, 365.24225 days in a year and 12 months in a year. (from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html)

AUTHORMatt Sergeant, matt@sergeant.org Tobias Brox, tobiasb@tobiasb.funcom.com Bali\*:XXzs Szabi\*:XX (dLux), dlux@kapu.hu

LICENSEPlease see Time::Piece for the license.

BugsCurrently the methods aren't as efficient as they could be, for reasons of clarity. This is probably a bad idea.
0
Johanes Gumabo
Data Size   :   6,162 byte
man-Time::Seconds.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 202,887
Visitor ID   :     :  
Visitor IP   :   3.12.163.120   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Time::Seconds.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Time::Seconds.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Time::Seconds.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Time::Seconds.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Time::Seconds.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Time::Seconds.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Time::Seconds.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Time::Seconds.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Time::Seconds.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|Time::Seconds.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Time::Seconds.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|Time::Seconds.3pm|170|\*(C`print ONE_WEEK\->minutes;\*(C'\fR |seconds only, so you cannot, for example, do this: \f(CW\*(C`print ONE_WEEK\->minutes;\*(C'\fR )         (rof_escape_sequence|91|Time::Seconds.3pm|196|\*:XXzs Szabi\*:XX (dLux), dlux@kapu.hu |Bali\*:XXzs Szabi\*:XX (dLux), dlux@kapu.hu )