Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5869
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <stef.mientki@gmail.com> |
| 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; 'languages,': 0.03; 'elif': 0.04; 'filename:fname piece:py': 0.04; 'int': 0.05; 'parameter': 0.05; '"""': 0.07; "shouldn't": 0.07; 'something,': 0.07; 'type,': 0.07; 'python': 0.08; 'assumed': 0.09; 'integer,': 0.09; 'output': 0.11; 'def': 0.12; '#return': 0.16; '(),': 0.16; 'comma': 0.16; 'methods,': 0.16; 'self,': 0.16; 'simpler.': 0.16; 'skip:) 10': 0.16; 'stef': 0.16; 'valueerror': 0.16; 'class,': 0.16; 'float': 0.16; 'traceback': 0.16; 'input': 0.17; 'meant': 0.18; 'rewrite': 0.19; 'cheers,': 0.19; 'maybe': 0.23; 'converts': 0.23; 'helper': 0.23; 'integer': 0.23; 'specify': 0.25; 'stored': 0.25; 'specified': 0.26; 'subject: : ': 0.26; 'string': 0.26; 'raise': 0.28; 'import': 0.29; 'class': 0.29; 'received:209.85.215': 0.30; 'it.': 0.31; 'equivalent': 0.31; 'print': 0.31; "skip:' 10": 0.32; 'used,': 0.32; 'someone': 0.33; 'to:addr:python-list': 0.33; 'error': 0.33; 'things': 0.33; 'header:User-Agent:1': 0.35; 'round': 0.35; 'try:': 0.35; 'else': 0.35; 'using': 0.35; 'message-id:@gmail.com': 0.36; 'none': 0.37; 'received:google.com': 0.37; 'something': 0.37; 'received:209.85': 0.37; 'floating': 0.37; 'another': 0.37; 'hello,': 0.38; 'received:192': 0.38; 'sometimes': 0.39; 'skip:s 20': 0.39; 'received:209': 0.39; 'difficult': 0.39; 'to:addr:python.org': 0.39; 'current': 0.40; 'format': 0.40; 'received:192.168.1': 0.40; 'year': 0.61; 'week,': 0.65; 'skip:* 70': 0.68; ')))': 0.84; 'datetime': 0.84; 'delphi': 0.84; 'packed': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:x-enigmail-version:content-type; bh=tf6bbWK+7AVbpAnBbbxML2aGlEh+lugcP/0v51HwBKo=; b=L2xlr51eCAolo3GTmrBtPdcZaSE4GKmtxq6C1oAfPN4Q/AMtmwap7cjQspJfH+61ie B/ZM/2PvLFI2cwxXGOoymOZqX4K8E6zDIrk8ZxFT5qqlGgPf+MVY/IGLPKODiQs1BcXs 2deuC2XvMr+IpPd9dTxznPfvfkd0OqWYhq4+Q= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=gJzbFENekPnms6xFo+zYI9A4j/u5jVOKOOUmP0BwX6WYv0tT8Lsk2sBAA6d/wlgFrT uyjzyTbPwRpnoHW0xX25W312ukO/2/jGc1bnavy6HxTt7lWz/4VfDRKXhvItIGEcWG3C 20weDDunxZerqTLxBQmT1KRfNAvBq6oC69t5A= |
| Date | Fri, 20 May 2011 20:27:56 +0200 |
| From | Stef Mientki <stef.mientki@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | maybe useful : datetime conversion |
| X-Enigmail-Version | 1.1.1 |
| Content-Type | multipart/mixed; boundary="------------010304010205020303040102" |
| 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.1851.1305916080.9059.python-list@python.org> (permalink) |
| Lines | 200 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305916080 news.xs4all.nl 49177 [::ffff:82.94.164.166]:59210 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5869 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
hello, using datetimes from a lot of different sources, in many languages, I had about 30 python helper routines, which I now packed in one class, much simpler. Although I used the Delphi date-format as the base, it shouldn't be difficult to rewrite the class for another type. The input can be one of the following types : - None : the current date-time is used - 30000.9 : a Delphi datetime - 30000 : a Delphi datetime - "30000.9" : a Delphi datetime as a string - "30000,9" : a Delphi datetime as a (Dutch) string - "20-5-11" : short year notation - "20-05-2011" : long year notation - "2009-09-24 10:12:24" : Access string - datetime.datetime ( 2011, 1, 15 ) - time.struct_time - wx.DateTime - time.time() (through method from_time) Maybe someone can use it. cheers, Stef
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
maybe useful : datetime conversion Stef Mientki <stef.mientki@gmail.com> - 2011-05-20 20:27 +0200
csiph-web