not sure on what you are exactly trying to do, but for conversions from epoch to localtime you can use 'localtime'
perldoc -f localtime localtime EXPR localtime Converts a time as returned by the time function to a 9-element list with the time analyzed for the local time zone. Typically used as follows: # 0 1 2 3 4 5 6 7 8 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);Or you can use one of the many modules that does dateconversions, my current favorite is DateTime.
'Programming > Perl' 카테고리의 다른 글
[Perl] Beginning Perl Tutorial - Installing and Using MySQL (0) | 2014.01.29 |
---|---|
[Perl] Perl DBI examples for DBD::mysql (0) | 2014.01.29 |
[Perl] PERL - MySQL Query (0) | 2014.01.29 |
[Perl] Port Scanner (포트 스캐너) (0) | 2014.01.29 |
[Perl] easiest way to convert an epoch time to a human-readable datetime (0) | 2014.01.29 |
[Perl] Perl Convert Epoch to Human timestamp YYYY-MM-DD HH:MM:SS (0) | 2014.01.29 |
[Perl] Perl Epoch Converter Routines (0) | 2014.01.29 |
[Perl] Formatting dates with strftime (0) | 2014.01.29 |
[Perl] Epoch Time(Unix Time) 구하는 방법 (0) | 2014.01.29 |
[Perl] 펄 프로그래밍 기초 #1 (Beginner's Introduction to Perl #1) (0) | 2014.01.29 |