POSIX::strptime man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

POSIX::strptime(3)    User Contributed Perl Documentation   POSIX::strptime(3)

NAME
       POSIX::strptime - Perl extension to the POSIX date parsing strptime(3)
       function

SYNOPSIS
	($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = POSIX::strptime("string", "Format");

DESCRIPTION
       Perl interface to strptime(3)

FUNCTIONS
       strptime
	    ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = POSIX::strptime(string, format);

	   The result for any value not extracted is not defined. Some
	   platforms may reliably return "undef", but this is dependent on the
	   strptime(3) function in the underlying C library.

	   For example, only the following fields may be relied upon:

	    my ($min, $hour) = ( POSIX::strptime( "01:23", '%H:%M' ) )[1,2];

	    my ($mday, $mon, $year) = ( POSIX::strptime( "2010/07/16", '%Y/%m/%d' ) )[3,4,5];

	   Furthermore, not all platforms will set the $wday and $yday
	   elements. If these values are required, use "mktime" and "gmtime":

	    use POSIX qw( mktime );
	    use POSIX::strptime qw( strptime );

	    my ($mday, $mon, $year) = ( POSIX::strptime( "2010/07/16", '%Y/%m/%d' ) )[3,4,5];
	    my $wday = ( gmtime mktime 0, 0, 0, $mday, $mon, $year )[6];

SEE ALSO
       strptime(3)

AUTHOR
       Philippe M. Chiasson <gozer@cpan.org> Kim Scheibel <kim@scheibel.co.uk>

REPOSITORY
       http://svn.ectoplasm.org/projects/perl/POSIX-strptime/trunk/

COPYRIGHT
       Copyright 2005 by Philippe M. Chiasson <gozer@cpan.org>.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       See http://www.perl.com/perl/misc/Artistic.html

perl v5.14.0			  2010-07-16		    POSIX::strptime(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net