Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Using Time::Piece Strptime

by grasshopper!!! (Beadle)
on Jan 26, 2016 at 13:41 UTC ( [id://1153672]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using Time::Piece Strptime
in thread Using Time::Piece Strptime

You could use regexpression

#!/usr/bin/perl -w use Time::Piece; use strict; my $date = '3/11/16, 00, Mar, 2016'; Time::Piece->strptime($date, '%D, %M, %b, %Y') =~ /^(.+)\d\d:\d\d:\d\d + (.+)$/ ; my $date1 =join ' ',$1,$2; print "$date1\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found