Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25976

Re: How to represent dates BC

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'pypi': 0.07; 'subject:How': 0.09; 'python': 0.09; 'commonly': 0.09; 'here?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "wouldn't": 0.11; 'from:addr:cheimes.de': 0.16; 'from:addr:lists': 0.16; 'from:name:christian heimes': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:dates': 0.16; 'module': 0.19; 'written': 0.20; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'url:wiki': 0.26; '[1]': 0.27; '[2]': 0.27; 'header:X-Complaints-To:1': 0.28; 'url:wikipedia': 0.29; 'implement': 0.32; 'url:python': 0.32; 'to:addr:python-list': 0.33; 'christian': 0.34; 'received:org': 0.36; 'url:org': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'days': 0.60; 'wide': 0.62; 'url:0': 0.67; 'ranges': 0.71
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Christian Heimes <lists@cheimes.de>
Subject Re: How to represent dates BC
Date Tue, 24 Jul 2012 12:29:32 +0200
References <500E7111.9080803@shopzeus.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host f048110059.adsl.alicedsl.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
In-Reply-To <500E7111.9080803@shopzeus.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2527.1343125785.4697.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343125785 news.xs4all.nl 6859 [2001:888:2000:d::a6]:51434
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:25976

Show key headers only | View raw


Am 24.07.2012 11:55, schrieb Laszlo Nagy:
> What is the good representation here? Should I implement my own date
> type? (I wouldn't want to.)

JDN [1] is a commonly used format for wide ranges of dates. I've used it
in the past to refer to days BC. PyPI offers a Python module [2] that
looks well written and documented.

HTH,
Christian

[1] http://en.wikipedia.org/wiki/Julian_Day_Number
[2] http://pypi.python.org/pypi/jdcal/1.0

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to represent dates BC Christian Heimes <lists@cheimes.de> - 2012-07-24 12:29 +0200

csiph-web