Thread Zeitkonvertierung (1 answers)
Opened by jan99 at 2015-05-27 18:06

GwenDragon
 2015-05-27 19:16
#181202 #181202
User since
2005-01-17
14759 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
my $datestr = '2015-04-16T16:55:19Z';

# Important! Time::Piece does not know whort timezone name Z; 
# replace short Z (=UTC, Zulu time) with numeric TZ offset
$datestr =~ s/Z$/+0000/; 
my $t = Time::Piece->strptime($datestr, '%Y-%m-%dT%H:%M:%S%z');

View full thread Zeitkonvertierung