Thread Zeit / Datum umrechnen (6 answers)
Opened by gaelic at 2005-09-08 12:35

polkana
 2005-09-08 13:28
#57744 #57744
User since
2004-06-18
74 Artikel
BenutzerIn
[Homepage] [default_avatar]
kan sein so?
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#CFG config
#------------------------------------------------
#--- GMT Time -----------------------------------
our %config;
$config{'gmt_time'} = 2; #How many hours will be setup
$config{'gmt_func'} = '+'; #what we need - or +

sub make_time {
       use POSIX;
       my ( $sec, $min, $hour, $mday, $mon, $year )=localtime(time);
       $min="0$min" if ($min < 9);
       $hour=$hour.$config{'gmt_func'}.$config{'gmt_time'};
       $config{'now'}=int POSIX::strftime("\%H\%M",$sec,$min,$hour,$mday,$mon,$year);
       $config{'today'}=POSIX::strftime("\%Y-\%m-\%d",$sec,$min,$hour,$mday,$mon,$year);
       return;
}
\n\n

<!--EDIT|polkana|1126171805-->

View full thread Zeit / Datum umrechnen