On Fri, 03 Jun 2011 19:47:53 -0400, Uri Guttman wrote:
> regardless of the need for millisecond info, use the POSIX::strftime
> function as it does all of that formatting timestamps for you. and since
> you pass it a string you can just interpolate the millisecond part into
> that string.
Like so:
> "GS" == Gurpreet Singh writes:
GS> Posting in some childish perlplease bear it
please don't post with line numbers. that makes it very hard to
cut/paste your code to try it out.
GS> 1 #!/usr/bin/perl
GS> 2 use warnings;
GS> 3 use strict;
GS> 4 use Time::HiRes qw(ge
Me too a beginner, posting a reply in childish speech:
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Time::HiRes qw(gettimeofday);
5 use Time::Local;
6 use Time::localtime;
7
8 my $t0 = gettimeofday;
9
10 my $forlocaltime = int($t0);
11 my $for_millisecond = int(($t0-$
Posting in some childish perlplease bear it
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Time::HiRes qw(gettimeofday);
5 use Time::Local;
6 use Time::localtime;
7
8 my $t0 = gettimeofday;
9
10 my $forlocaltime = int($t0);
11 my $for_millisecond = int(($t0-$forlo
On Fri, Jun 3, 2011 at 9:38 AM, Anirban Adhikary wrote:
> Hi List
> Is it possible to get the current time_stamp with milisecond format
>
> like HH:MI:SS:NNN DD:MM:(NNN is the milisecond)
>
> If yes then how can I achieve the same..
>
> Thanks & Regards in advance
> Anirban Adhik
Hi List
Is it possible to get the current time_stamp with milisecond format
like HH:MI:SS:NNN DD:MM:(NNN is the milisecond)
If yes then how can I achieve the same..
Thanks & Regards in advance
Anirban Adhikary.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For addi