Veritas-bu

Re: [Veritas-bu] date calculator

2008-01-22 18:32:05
Subject: Re: [Veritas-bu] date calculator
From: "Conner, Neil" <neil AT mbari DOT org>
To: "Stump, Bob A" <Bob.A.Stump AT fnis DOT com>, "veritas-bu" <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Tue, 22 Jan 2008 15:20:58 -0800

If you need to script it, check out Steffen Beyer’s date calculation suite: http://search.cpan.org/dist/Date-Calc.

 

#!/bin/perl -w

 

###################################################

##

##    Copyright (c) 1998 - 2004 by Steffen Beyer.

##    All rights reserved.

##

##    This program is free software; you can redistribute it

##    and/or modify it under the same terms as Perl itself.

##

###################################################

 

BEGIN { eval { require bytes; }; }

use strict;

no strict "vars";

 

use Date::Calc qw(:all);

 

$yy1 = (@ARGV)[0];

$mm1 = (@ARGV)[1];

$dd1 = (@ARGV)[2];

$delta = (@ARGV)[3];

 

($year,$month,$day) = Add_Delta_Days($yy1,$mm1,$dd1,$delta);

printf "%.2u/%.2u/%.4u\n",$month,$day,$year;

 

__END__

 

 

-Neil

 


From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Stump, Bob A
Sent: Tuesday, January 22, 2008 1:16 PM
To: veritas-bu
Subject: [Veritas-bu] date calculator

 

Does anyone know how I can recalculate what a date would be if I added 558 days to it?

For instance, what date would it be 558 days after July 7, 2008?

 

______________

The information contained in this message is proprietary and/or confidential. If you are not the
intended recipient, please: (i) delete the message and all copies; (ii) do not disclose,
distribute or use the message in any manner; and (iii) notify the sender immediately. In addition,
please be aware that any message addressed to our domain is subject to archiving and review by
persons other than the intended recipient. Thank you.
_____________

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu