Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: change hour in timestamp

by kcott (Archbishop)
on Jun 05, 2022 at 00:54 UTC ( [id://11144401]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $date = q{Sat Jun  4 22:47:31 2022};
        my $fmt_t = q{%a %b %d %T %Y};
    ...
        say sprintf $fmt_s, split q{ }, $tp->strftime($fmt_t);
        $tp += 6 * ONE_DAY;
        say sprintf $fmt_s, split q{ }, $tp->strftime($fmt_t);
    
  2. or download this
    Sat Jun  4 20:47:31 2022
    Fri Jun 10 20:47:31 2022
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found