[IronPython] S3, boto, and strftime with %X

Dino Viehland dinov at exchange.microsoft.com
Mon Oct 16 19:20:03 CEST 2006

Thanks for the bug report.  I've opened bug # 4429 (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=4429).

Time/datetime have been a bit of a bug farm so there'll probably be a small amount of general cleanup here for 1.1.  We fixed a couple of bugs there for 1.01, and I would have liked to have done more, but it would have just been too destabilizing.  We'll try and get this one in 1.1 plus some other fixes for better compatibility.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Monday, October 16, 2006 5:42 AM
To: Discussion of IronPython
Subject: [IronPython] S3, boto, and strftime with %X

S3 is Amazon's Simple Storage Service.

boto is a Python interface to Amazon Web Services, available here:

boto has a bug. boto uses strftime with %X format string to generate Date header, but Python Library Reference doesn't guarantee any such thing for %X. It only says:

%X Locale's appropriate time representation.

Fix: replace %X with %H:%M:%S.

On the other hand, IronPython behaves differently in this case, causing an incompatibility. Locale was POSIX. I think this should be fixed.

IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved.
>>> import time
>>> time.strftime('%X')

Python 2.4.4c0 (#2, Oct  2 2006, 00:57:46) [GCC 4.1.2 20060928 (prerelease) (Debian 4.1.1-15)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strftime('%X')

Seo Sanghyeon
users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list