hello,
I've made a perl script,
I will print the start hour of the script and the end hour.
I've make this
I've problem beacause i've the same hours;
the script start at 14:56:25
and ended at 15:00:12
and my script print
Started 14:56:25
Stopped 14:56:25
instead of
Started 14:56:25
Stopped 15:00:12
Can you help me , please
I've made a perl script,
I will print the start hour of the script and the end hour.
I've make this
Code:
#!/usr/bin/perl
use strict;
use POSIX qw(strftime);
...code
print "Started ".strftime( '%H:%M:%S', localtime )."\n";
...code
print "Stopped ".strftime( '%H:%M:%S', localtime )."\n";
I've problem beacause i've the same hours;
the script start at 14:56:25
and ended at 15:00:12
and my script print
Started 14:56:25
Stopped 14:56:25
instead of
Started 14:56:25
Stopped 15:00:12
Can you help me , please