Thread Localtime: Abfrage von Stunden und Minuten (8 answers)
Opened by wolfgangk at 2003-11-11 08:29

havi
 2003-11-11 08:37
#70997 #70997
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use warnings;
use strict;

#     0    1    2     3     4    5     6     7     8
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);

print "$hour:$min\n";

1;


Gruss

Edit: Formatierung\n\n

<!--EDIT|havi|1068532759-->

View full thread Localtime: Abfrage von Stunden und Minuten