reference doc pending ...
in general set the reference date first and then modify it
printf "%(%K)T\n" "Sept 23 2009 noon"
printf "%(%K)T\n" "Sept 23 2009 noon 90 days"
printf "%(%K)T\n" "Sept 23 2009 noon 90 days hence"
printf "%(%K)T\n" "Sept 23 2009 noon 90 days ago"
should produce
2009-09-23+12:00:00
2009-12-22+12:00:00
2009-12-22+12:00:00
2009-06-25+12:00:00
On Mon, 07 Dec 2009 12:58:29 -0500 Mario DeFazio wrote:
> Hello ksh93 aficionados,
> I recall that printf "%T" has some powerful ways to compute dates
> using phrases like "10 days from today" or some such.
> Is there a reference doc for how to use these?
> My particular need at the moment is to compute the date for "90 days
> after Sept 23,2009"
> Regards,
> Mario
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users