UNIX ON-LINE Man Pages - Die Onlinehilfe

Die Syntax von Unixbefehlen wird in den entsprechenden Manpages dokumentiert. Hier können Sie diese Onlinehilfe für viele Standardbefehle abrufen.

Suchoptionen:
Seiten auflisten, welche beginnen mit:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   ANDERE   ALLE
Time::Seconds(3pm)     Perl Programmers Reference Guide     Time::Seconds(3pm)

NAME
       Time::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";

DESCRIPTION
       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.

       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: "print
       ONE_WEEK->minutes;"

METHODS
       The 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)

AUTHOR
       Matt Sergeant, matt@sergeant.org

       Tobias Brox, tobiasb@tobiasb.funcom.com

       BalieXXzs SzabieXX (dLux), dlux@kapu.hu

LICENSE
       Please see Time::Piece for the license.

Bugs
       Currently the methods aren't as efficient as they could be, for reasons
       of clarity. This is probably a bad idea.

perl v5.12.1                      2010-04-26                Time::Seconds(3pm)
 

Scannen Sie den Barcode um die Webseite zu öffnen


Quelle: http://www.trinler.net/de/service/doc/linux/man.html?command=Time%3A%3ASeconds
Gedruckt am: 13.12.2017 10:03 GMT+0100 (2017-12-13T10:03:26+01:00)