Path: csiph.com!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'obey': 0.09; 'sane': 0.09; 'timestamp': 0.09; 'assume': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'subject: \n ': 0.16; 'timezones': 0.16; 'utc': 0.16; 'utc,': 0.16; 'utc.': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'jan': 0.18; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'in.': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'received:209.85.212': 0.28; 'run': 0.28; 'staying': 0.29; 'knows': 0.30; 'to:addr:python-list': 0.33; 'that,': 0.34; 'agree': 0.34; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'beyond': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'application': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'matter': 0.61; 'hints': 0.65; 'smith': 0.71; 'absolutely': 0.84; '2013': 0.84; 'absolutely.': 0.84; 'dates:': 0.84; 'subject:Using': 0.84 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:to :content-type; bh=+Se7Qe75/3FZwJx1yJkg5172DNvbcJaphda5ZFVg6SU=; b=hgbO+8zpUa2oswa+GMrtXWDxbiKZrDhCLObgg6O4JpGXBvMNlnbrUxuxmAxm83uO/j iZ1j98T5Xd+eqVDz17/ESRb8j29YcGUIlQiw4rZstEYv/f7vMXODYT6ZEmiUIU/JwjK/ DLTXW1cz9PycA+eTY4KKlOz+KNUTgzibXnxdGEqYLNVZ8LMY7upZVu7Nzq7D33xHRugR Zyu7OXeGin4AlwbfD5jjaW/5VrWR+nI8WILeRSgupVg3DYq/71Jj3xS7CwOJBP3gUUxk GRlXN3Fnvem2QQUIqC4/73XGiFSvARKxYjbXasRbjqjE+qD4Q2cfyrIQjFJglHhIicll RxoQ== MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 3 Jan 2013 01:51:15 +1100 Subject: Re: Using mktime to convert date to seconds since epoch - omitting elements from the tuple? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357138279 news.xs4all.nl 6867 [2001:888:2000:d::a6]:42178 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35996 On Thu, Jan 3, 2013 at 1:28 AM, Roy Smith wrote: > PPS: Some additional hints for staying sane while working with dates: I assume you mean timestamps. A date doesn't need to worry about UTC the way a timestamp does. Beyond that, I agree with most of your comments. > 3) Run all your servers with their timezones set to UTC. Not strictly necessary imo; as long as your application knows that it needs to work in UTC, it doesn't matter what the OS works in. But yes, it is a convenience. > 7) If it's absolutely impossible to obey rule #6, run away from the > project. Absolutely. ChrisA