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


Groups > comp.lang.python > #33644

Re: Printing time in "at" format?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.unit0.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <roy@panix.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:166': 0.05; 'api': 0.09; 'accepts': 0.09; 'parsed': 0.09; 'to:addr:python.list': 0.09; 'to:addr:tim.thechases.com': 0.09; 'to:name:tim chase': 0.09; 'cc:addr:python-list': 0.10; '*and': 0.16; 'formats.': 0.16; 'former,': 0.16; 'merely': 0.16; 'query,': 0.16; 'received:166.84': 0.16; 'received:166.84.1': 0.16; 'received:166.84.1.89': 0.16; 'received:mailbackend.panix.com': 0.16; 'received:panix.com': 0.16; 'roy': 0.16; 'string': 0.17; 'wrote:': 0.17; 'tim': 0.18; 'cc:2**0': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; '---': 0.26; 'chase': 0.29; 'turns': 0.33; 'nov': 0.35; 'pm,': 0.35; 'posting': 0.35; 'subject:?': 0.35; 'subject:" ': 0.36; 'subject:: ': 0.38; 'your': 0.60; 'header :Message-Id:1': 0.62; 'wide': 0.62; '20,': 0.65; 'smith': 0.71; 'discovered': 0.83; 'email addr:panix.com': 0.84; 'fortunately,': 0.84
Subject Re: Printing time in "at" format?
Mime-Version 1.0 (Apple Message framework v1283)
Content-Type text/plain; charset=iso-8859-1
From Roy Smith <roy@panix.com>
In-Reply-To <50ABC8E5.9010401@tim.thechases.com>
Date Tue, 20 Nov 2012 13:24:21 -0500
Content-Transfer-Encoding quoted-printable
References <k8gagp$gin$1@panix2.panix.com> <50ABC8E5.9010401@tim.thechases.com>
To Tim Chase <python.list@tim.thechases.com>
X-Mailer Apple Mail (2.1283)
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.78.1353435864.29569.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353435865 news.xs4all.nl 6872 [2001:888:2000:d::a6]:58299
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33644

Show key headers only | View raw


On Nov 20, 2012, at 1:16 PM, Tim Chase wrote:

> Your statement can be ambiguously parsed as "I need to merely
> *generate* time specifications that 'at' can parse", or it can be
> parsed as "I need to generate *and consume* time specifications the
> same way as 'at' does"
> 
> If it's the former, it's pretty easy--'at' accepts a wide variety of
> formats.

Fortunately, it's the former.

Since posting my original query, I have discovered by experimentation that the API also accepts a string of digits as a unix timestamp, so this turns out to be trivial.

---
Roy Smith
roy@panix.com


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


Thread

Printing time in "at" format? roy@panix.com (Roy Smith) - 2012-11-20 11:18 -0500
  Re: Printing time in "at" format? Tim Chase <python.list@tim.thechases.com> - 2012-11-20 12:16 -0600
  Re: Printing time in "at" format? Roy Smith <roy@panix.com> - 2012-11-20 13:24 -0500
  Re: Printing time in "at" format? Hans Mulder <hansmu@xs4all.nl> - 2012-11-21 13:14 +0100

csiph-web