Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: How do I add 18 seconds to an ISO-8601 String in Python? Date: Sat, 23 Jan 2016 19:44:38 -0700 Lines: 8 Message-ID: References: <8de7de19-9746-48f3-bded-d8bfb5c7dc22@googlegroups.com> <7a830b9e-4acc-49ea-9863-498163a20a5f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Z6+SAD1d4RXwJd5VYNKcug1N2EPiuqMvwAx68PGGtmdA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; 'subject:How': 0.09; 'formatted': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:ISO': 0.16; 'subject:String': 0.16; 'wrote:': 0.16; 'much!': 0.18; 'string,': 0.18; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'followed': 0.27; 'module.': 0.27; 'always,': 0.29; 'btw,': 0.29; 'convert': 0.29; 'message-id:@gmail.com': 0.34; 'robert': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'thank': 0.38; 'received:192': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'back': 0.62; 'charset:windows-1252': 0.62; 'internet': 0.70; 'searches.': 0.84; 'subject:add': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <7a830b9e-4acc-49ea-9863-498163a20a5f@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102066 On 01/23/2016 07:22 PM, Robert James Liguori wrote: > Thank you so much! Btw, how do I convert back to ISO-8301? Have a look at the documentation for the datetime module. The docs will tell you how you can convert to a string, formatted to your specifications and needs. As always, the documentation should be the first place you look, followed by internet searches.