|
All snippets of the tag date |
 |
1-4 of 4 Entries |
 |
|
date (Perl::Function) |
Created by Marko Schulz at 2010-01-20 13:51:05 |
| sub date {
my @days = ('Sonntag','Montag','Dienstag','Mittwoch',
'Donnerstag','Freitag','Samstag');
my $time = time() ;
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($time+($tzone*3600)) ;
$mon = $mon+1 ;
... |
|
date2time (Perl::Snippets) |
Created by Marko Schulz at 2010-01-20 13:44:25 |
| #!/usr/bin/perl
# required perl package...
use POSIX qw(strftime);
print date2time( '2007-08-17 10:45:22' );
# ************************************************************
# convert date string ot unix time (2005-06-16 10:00:00 => 1118916000)... |
|
date (Perl::Snippets) |
Created by Marko Schulz at 2010-01-20 13:44:00 |
| #!/usr/bin/perl
# Example: 2009-09-23 17:01:25
print date( "%Y-%m-%d %H:%M:%S" );
# ************************************************************
# Return the current time in the given FORMAT.
#
# FORMAT controls the output.
#
# %a => Sun
... |
|
date (Python::Function) |
Created by Marko Schulz at 2008-12-27 02:50:22 |
| def date( format ):
"""date --- Get the current date by strftime format.
(string) string date( (string) format )"""
from time import strftime
return strftime(format) |
 |
1-4 of 4 Entries |
 |
|
|
|