nicopelle has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for your time as usuals, Nick.#!/usr/bin/perl -w #output as 031810002015 (march 18 10:00 del 2015) ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time +); my $now = sprintf("%02d%02d%02d%02d%04d", $mon+1, $mday,$hour, $min,$y +ear+1900); print "$now\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: substract from actual date 7 days and printout in month.days.hours.min.year
by Anonymous Monk on Mar 23, 2015 at 10:29 UTC | |
by nicopelle (Acolyte) on Mar 23, 2015 at 10:36 UTC | |
|
Re: substract from actual date 7 days ..
by Discipulus (Canon) on Mar 23, 2015 at 10:29 UTC | |
|
Re: substract from actual date 7 days and printout in month.days.hours.min.year
by MidLifeXis (Monsignor) on Mar 23, 2015 at 13:34 UTC |