Hie fellow friends...
Thanks for the feedback and tips.
I found that the script provided by "pg" eventually solved my problem. It is straight forward.
my $offset = 3;
display(reverse((localtime(time()))
0 .. 5));
display(reverse((localtime(time() + 24 * 3600 * $offset))
0 .. 5));
sub display {
my @t = @_;
printf("%d-%02d-%02d-%02d:%02d:%02d\n", $t[0] + 1900, $t
1 + 1, @
+t
2 .. 5);
}
Thanks so much