Search Results

Search: Posts Made By: derekludwig
1,513
Posted By derekludwig
So what have you tried? And what doesn't work?
So what have you tried? And what doesn't work?
1,513
Posted By derekludwig
Your sample date changes things a bit: use...
Your sample date changes things a bit:
use strict;
use warnings;
use Time::Local;

sub ckdate {
my $date = shift @_;
my ($year, $mon, $mday) = $date =~ m{^(\d\d\d\d)(\d\d)(\d\d)$};
...
1,513
Posted By derekludwig
YMMV... use strict; use warnings; use...
YMMV...

use strict;
use warnings;
use Time::Local;

sub ckdate {
my ($year, $mon, $mday) = @_;
return join '', @_ if defined eval { timegm(0, 0, 0, $mday, $mon-1, $year); };
return...
1,513
Posted By derekludwig
bhaskar v...
bhaskar v (https://www.unix.com/members/302157318.html),

Can you provide some sample data, and what you have tried thus far?

- D
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy