Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.168 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.67; '*S*': 0.00; 'written': 0.20; 'this:': 0.23; 'header:User-Agent:1': 0.26; 'received:209.85.212': 0.28; 'this.': 0.29; 'could': 0.32; 'like:': 0.33; 'to:addr:python- list': 0.33; 'skip:d 20': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'message-id:@gmail.com': 0.36; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'savings': 0.75 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=hNDnOV8pcN8YUK4fPCO+rgw8ew71T1MlLVdVWceFq4Y=; b=prf1H72WUyhhOpljLg0WcvIGkVY5R3CE9MkuzmZZaUQsxPH/zjG+L/GESrJIMHK//x fWPdfi2OHJvVvZjYQYMqwmz2jryQh1I+wJ4M8CHjLk/fiirsW0ajGLuOXom9xPY9tIx7 U93rEp+oZhFgJrQxmF5WFYPDvxQFpU86qdRvZhI+sFPLAJvBg3cH6QzvlMWyQmqEY/Wf 0eivI2uh4xH4amd+NRCkDkjO8s344x9VLuPuRBLAbxPQx0yC0mQ8AImrxe1yDKlwTv0Q x+eURI/FeTiRAIEwwh03bL89DQFUCRUUJZNyBnD5UYmRS5WHuVdDnAZwWgEEl0UTqB21 YmIw== Date: Mon, 17 Sep 2012 07:25:11 +0300 From: Nick the Gr33k User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: utcnow Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347855926 news.xs4all.nl 6925 [2001:888:2000:d::a6]:59914 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29362 Hello is there a better way of writing this: date = ( datetime.datetime.utcnow() + datetime.timedelta(hours=3) ).strftime( '%y-%m-%d %H:%M:%S') something like: date = datetime.datetime.utcnow(hours=3).strftime( '%y-%m-%d %H:%M:%S') i prefer it if it could be written as this. Also what about dayligh savings time?