Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Time\Seconds.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Time::Seconds - a simple API to convert seconds to other date values</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Time::Seconds - a simple API to convert seconds to other date values</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#methods">METHODS</a></li> <li><a href="#author">AUTHOR</a></li> <li><a href="#license">LICENSE</a></li> <li><a href="#bugs">Bugs</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Time::Seconds - a simple API to convert seconds to other date values</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> 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";</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This 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.</p> <p>Time::Seconds also exports the following constants:</p> <pre> ONE_DAY ONE_WEEK ONE_HOUR ONE_MINUTE ONE_MONTH ONE_YEAR ONE_FINANCIAL_MONTH LEAP_YEAR NON_LEAP_YEAR</pre> <p>Since perl does not (yet?) support constant objects, these constants are in seconds only, so you cannot, for example, do this: <code>print ONE_WEEK->minutes;</code></p> <p> </p> <hr /> <h1><a name="methods">METHODS</a></h1> <p>The following methods are available:</p> <pre> 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;</pre> <p>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 <a href="http://www.tondering.dk/claus/calendar.html)">http://www.tondering.dk/claus/calendar.html)</a></p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>Matt Sergeant, <a href="mailto:matt@sergeant.org">matt@sergeant.org</a></p> <p>Tobias Brox, <a href="mailto:tobiasb@tobiasb.funcom.com">tobiasb@tobiasb.funcom.com</a></p> <p>Bal??s Szab?? (dLux), <a href="mailto:dlux@kapu.hu">dlux@kapu.hu</a></p> <p> </p> <hr /> <h1><a name="license">LICENSE</a></h1> <p>Please see Time::Piece for the license.</p> <p> </p> <hr /> <h1><a name="bugs">Bugs</a></h1> <p>Currently the methods aren't as efficient as they could be, for reasons of clarity. This is probably a bad idea.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Time::Seconds - a simple API to convert seconds to other date values</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de