Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Rounding Issue in DateTime strftime?

by SparkeyG (Curate)
on Nov 14, 2011 at 17:44 UTC ( [id://937996]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    my $date = $format->parse_datetime($val);
    print $date->strftime("%F %T.%3N %Z")."\n";
    
  2. or download this
    2011-11-11 14:30:00.1000 UTC
    
  3. or download this
    2011-11-11 14:30:01.000 UTC
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://937996]
Approved by Corion
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found