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 13:36:11 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 |
On 10/11/2013 01:18 PM, Eric Blake wrote:
On 10/11/2013 11:56 AM, Reed Underwood wrote: > I wonder if it would be alright to implement a > full Julian date in the date command's format options > (maybe a %J?). It could be really useful in shell > scripts, etc.
Can you give an example of what you mean be a full Julian date?
http://en.wikipedia.org/wiki/Julian_day suggests:
For example, The Julian Date for 00:30:00.0 January 1, 2013 is 2456293.520833.
If the astronomical term is what you want, then maybe you really do have a format that cannot be expressed in any existing notation, and maybe it really is worth burning a % notation. But how common is the Astronomical Julian Date in shell programming?
On the other hand, that wikipedia page also suggests:
Outside of an astronomical or historical context, if a given "Julian date" is "40", this most likely means the fortieth day of a given Gregorian year, namely February 9.
and that description sounds like what 'date +%j' already gives you.
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Full Julian date in date command formatting options?, Reed Underwood, 2013/10/11
- Re: Full Julian date in date command formatting options?, Eric Blake, 2013/10/11
* Re: Full Julian date in date command formatting options?,Eric Blake <=
* Message not available
* Re: Full Julian date in date command formatting options?, Eric Blake, 2013/10/11
* Re: Full Julian date in date command formatting options?, Erik Auerswald, 2013/10/11
* Re: Full Julian date in date command formatting options?, Eric Blake, 2013/10/11
* Re: Full Julian date in date command formatting options?, Reed Underwood, 2013/10/11
* Re: Full Julian date in date command formatting options?, Reed Underwood, 2013/10/11
* Re: Full Julian date in date command formatting options?, Bob Proulx, 2013/10/12
- Re: Full Julian date in date command formatting options?, Eric Blake, 2013/10/11
- Prev by Date:Re: Full Julian date in date command formatting options?
- Next by Date:Re: Full Julian date in date command formatting options?
- Previous by thread:Re: Full Julian date in date command formatting options?
- Next by thread:Re: Full Julian date in date command formatting options?
- Index(es):