[AstroPy] AstroPy Digest, Vol 113, Issue 12
paul.ray at nrl.navy.mil
Mon Feb 22 07:30:46 EST 2016
> On Feb 22, 2016, at 7:00 AM, <astropy-request at scipy.org> <astropy-request at scipy.org> wrote:
> An alternate way to do this:
> import astropy.time
> import astropy.units as u
> t = astropy.time.Time.now()
> tnew = t - 1*u.d
> print tnew.isot
> Not a full solution, but does what you need.
Thanks for the reply, but that doesn’t do what I need. the isot format uses YYYY-MM-DD, not YYYY-DOY.
And, my example was just to be able to ask the general question about making my own custom string output formats for Time objects, like you can do with strftime in unix.
More information about the AstroPy