sot / chandra_time

Convert between various time formats relevant to Chandra.
https://sot.github.io/Chandra.Time
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Provide time attributes like year, mon, day, etc #19

Closed taldcroft closed 9 years ago

taldcroft commented 9 years ago

Inspired by #18.

taldcroft commented 9 years ago

@jeanconn - please have a try.

jeanconn commented 9 years ago

This works for me. I think in terms of doy more than yday but yday is certainly fine.

I think this also provides all that is needed for a time tuple if one wants to use time.strftime to build a time string.

I think we need to merge #17 to test this enhancement against the leap sec too, but it seems like it should all be consistent.

taldcroft commented 9 years ago

Astropy 1.0.3 is installed and fixes the 2015 leap second issue. I can't decide if we should merge 17 on principle. I guess I would lean slightly that way. There will be a version conflict that needs fixing.

taldcroft commented 9 years ago

As expected, this now needs rebase.