Gossamer Forum
Home : General : Perl Programming :

Re: [nsync] Conversion to unix time

Quote Reply
Re: [nsync] Conversion to unix time In reply to
Have some question regarding to the 'gmtime'
here my script :


$unix_stmp = 1131056063;

$real_time = gmtime($unix_stmp);
@real_time = gmtime($unix_stmp);
print"$real_time\n";


So,i will get this :


Thu Nov 3 22:14:23 2005


Here is my question, if i would like to capture the string
2005(year) and 23(second),what is the command that i should write ? i manage to capture
1) date($real_time[3])
2) month($real_time[4])
3) minute($real_time[1])
4) hour($real_time[2])



Subject Author Views Date
Thread Conversion to unix time nsync 26578 Nov 8, 2005, 11:30 PM
Thread Re: [nsync] Conversion to unix time
Volker 25773 Nov 9, 2005, 2:43 AM
Post Re: [Volker] Conversion to unix time
nsync 25775 Nov 9, 2005, 5:34 PM
Thread Re: [nsync] Conversion to unix time
nsync 25774 Nov 9, 2005, 8:05 PM
Thread Re: [nsync] Conversion to unix time
nsync 25728 Nov 9, 2005, 8:27 PM
Thread Re: [nsync] Conversion to unix time
Hargreaves 25776 Nov 10, 2005, 2:22 AM
Post Re: [Hargreaves] Conversion to unix time
Volker 25705 Nov 10, 2005, 3:02 AM
Thread Re: [nsync] Conversion to unix time
Volker 25844 Nov 10, 2005, 1:49 AM
Post Re: [Volker] Conversion to unix time
nsync 25717 Nov 10, 2005, 5:11 PM
Thread Re: [Volker] Conversion to unix time
nsync 25809 Nov 14, 2005, 4:31 AM
Thread Re: [nsync] Conversion to unix time
nsync 25796 Nov 15, 2005, 5:10 AM
Thread Re: [nsync] Conversion to unix time
Hargreaves 25660 Nov 15, 2005, 9:57 AM
Thread Re: [Hargreaves] Conversion to unix time
nsync 25855 Nov 15, 2005, 12:56 PM
Thread Re: [nsync] Conversion to unix time
Hargreaves 25683 Nov 15, 2005, 1:29 PM
Thread Re: [Hargreaves] Conversion to unix time
nsync 25764 Nov 15, 2005, 1:36 PM
Thread Re: [nsync] Conversion to unix time
nsync 25679 Nov 17, 2005, 5:39 AM
Thread Re: [nsync] Conversion to unix time
Volker 25733 Nov 17, 2005, 7:19 AM
Thread Re: [Volker] Conversion to unix time
nsync 25735 Nov 17, 2005, 9:05 AM
Thread Re: [nsync] Conversion to unix time
nsync 25608 Nov 18, 2005, 10:01 AM
Thread Re: [nsync] Conversion to unix time
dan 25722 Nov 18, 2005, 11:53 AM
Thread Re: [dan] Conversion to unix time
Hargreaves 25660 Nov 18, 2005, 12:30 PM
Thread Re: [Hargreaves] Conversion to unix time
dan 25820 Nov 18, 2005, 12:48 PM
Thread Re: [dan] Conversion to unix time
nsync 25661 Nov 19, 2005, 7:39 AM
Thread Re: [nsync] Conversion to unix time
nsync 25634 Nov 21, 2005, 11:09 PM
Thread Re: [nsync] Conversion to unix time
dan 25693 Nov 21, 2005, 11:35 PM
Post Re: [dan] Conversion to unix time
nsync 2767 Nov 22, 2005, 2:17 AM