Re: Full Julian date in date command formatting options? (original) (raw)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Eric Blake
Subject: Re: Full Julian date in date command formatting options?
Date: Fri, 11 Oct 2013 16:44:09 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 10/11/2013 04:18 PM, Erik Auerswald wrote:

I'd say that 'date' is the natural program to try for date manipulations. ;-)

GNU systems are very useful in scientific settings, IMHO adding full Julian date in the astronomical sense to 'date' further enhances this.

Hmm, the aspect of date conversion is interesting. In particular:

We already have bi-directional conversion between common and Epoch dates ('date +%s.%N' to convert to seconds since Epoch, and 'date -d @...' to convert Epoch back to common). So if we do add a conversion to Julian date output, we should also add a -d shorthand for conversion from Julian on input.

-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature