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])
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])