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


Groups > comp.lang.python > #78815

Re: Another time question

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.049
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'python,': 0.02; 'rest,': 0.07; 'dst': 0.09; 'hour.': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'assume': 0.14; 'bit...': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rent': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'year,': 0.18; 'trying': 0.19; 'connects': 0.19; 'figures': 0.19; '(in': 0.22; 'cc:addr:python.org': 0.22; "haven't": 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'on,': 0.29; 'am,': 0.29; 'primarily': 0.30; 'returned': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; "company's": 0.31; 'allows': 0.31; 'weeks': 0.32; 'another': 0.32; 'subject:time': 0.33; 'common': 0.35; 'except': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'done': 0.36; "i'll": 0.36; 'basis.': 0.38; 'depends': 0.38; 'bill': 0.39; 'sure': 0.39; 'enough': 0.39; 'how': 0.40; 'days': 0.60; 'tell': 0.60; "you're": 0.61; 'companies': 0.62; 'costs': 0.63; 'more': 0.64; 'side': 0.67; 'lose': 0.68; 'car': 0.72; 'drug': 0.74; 'day': 0.76; 'cable': 0.84; 'hour,': 0.84; 'presumably': 0.84; 'rentals': 0.84; 'charges,': 0.91; 'recurring': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=jZPXUCidXZrNuWzH86FCcq28jczG2rbk0vRKTQHQOFA=; b=hjdQl65b7jMSu0hea/zjGXCfGbxH3LulB+CQBl0MKT6uQGWks69DHvrrtw7HlTNqdV VicncRp7fJlQvrnUE6Gx1fZn3ryZxgRM93kfUM3vFXS+Ptw2RFzjPWfDEFQYOYxsDwGu f+UXBXlFKho5ZHBNT0Q79KX8hAMCEnqjOmXKJTiDLj++SX7ZgISWinXBt6DetiyiLcMB 8XxtueGWX6jpnl0myoiSoZsyPtOekdzes5oy+wBZPvEZvbRHE3wMqIRK9zXNj09Egi4y wgy2hZ+a8zMIOdeTwowzoY+XvAr0pCXKQm8UER2LdJBn5ZgsR3mnn22B89GTBaSQkGgh MnJA==
MIME-Version 1.0
X-Received by 10.50.20.169 with SMTP id o9mr36685207ige.14.1412724070567; Tue, 07 Oct 2014 16:21:10 -0700 (PDT)
In-Reply-To <a7s83a53hh9ssa2ehc9oje7n41m2hhnqob@4ax.com>
References <a7s83a53hh9ssa2ehc9oje7n41m2hhnqob@4ax.com>
Date Wed, 8 Oct 2014 10:21:10 +1100
Subject Re: Another time question
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14667.1412724073.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1412724073 news.xs4all.nl 2852 [2001:888:2000:d::a6]:49900
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:78815

Show key headers only | View raw


On Wed, Oct 8, 2014 at 10:12 AM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> I never really cared enough to ask anyone, but something like my cable
> bill is 98$ a month.  Do companies (in general) consider a month every
> 30 days or every time the 14th comes around?
>
> I did rent a car once during a time change and I only got to keep the
> car 23 hours.
>
> As another side note I have had drug prescripts that were 28 days was
> considered a month supply.  The would be 4 weeks instead of one month.

I'm not sure how this connects to Python, but I'll assume for now
you're trying to do something up as a script and just haven't told us
that bit...

With periodic recurring charges, it's common for "month" to mean
"calendar month", resetting every Nth of the month (often 1st, but any
day works). If your mobile data plan costs $35/month and allows you
7GB/month throughput, both those figures will be per calendar month.
For the rest, it depends on what the company's doing. Presumably drug
prescriptions are primarily done on a weekly basis; car rentals will
be on a daily basis. They're not going to say "cars have to be
returned by 8AM, except during DST when they must be returned by 9AM",
because that's just messy; so one day a year, you get an extra hour,
and one day a year, you lose an hour.

If you tell us what the code is you're trying to work on, we might be
able to advise more usefully.

ChrisA

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


Thread

Another time question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-07 19:12 -0400
  Re: Another time question Chris Angelico <rosuav@gmail.com> - 2014-10-08 10:21 +1100
    Re: Another time question Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-10-07 20:35 -0400
  Re: Another time question Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-08 12:39 +1100
  Re: Another time question Grant Edwards <invalid@invalid.invalid> - 2014-10-08 14:11 +0000

csiph-web