Re: timezones

2019-02-08 Thread Jaap van Wingerde
int(est_dt.strftime(fmt) + ' / ' + edt_dt.strftime(fmt)) > 2002-10-27 01:30:00 EDT-0400 / 2002-10-27 01:30:00 EST-0500 > > > Browse through their examples and see if you can find something > similar that works for you. > > > -Original Message- > From

timezones

2019-02-07 Thread Jaap van Wingerde
ndroid JPG-images as the 'Exif.GPSInfo.GPSTimeStamp' and 'Exif.GPSInfo.GPSDateStamp' are missing. Why I get this unrespected results? Kind regards, Jaap. -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: modification time in Python - Django: datetime != datetime :-(

2014-03-04 Thread Jaap van Wingerde
('%Y-%m-%dT%H:%M:%SZ',gmtime(os.path.getmtime(os.path.dirname(os.path.realpath(__file__ ))+'/templates/art_index.html'))) ... -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: modification time in Python - Django: datetime != datetime :-(

2014-03-03 Thread Jaap van Wingerde
Op schreef Chris Angelico in bericht : > See if ls is actually giving you ctime rather than mtime - compare the > results if you ask for os.path.getctime. jaap@liakoster:~$ python Python 2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "licen

modification time in Python - Django: datetime != datetime :-(

2014-03-03 Thread Jaap van Wingerde
elease:7.4 Codename: wheezy jaap@liakoster:~$ uname -a Linux liakoster.shrl.nl 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux jaap@liakoster:~$ ... -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: Python magazine

2010-03-29 Thread Jaap van Wingerde
On 29 mrt, 13:13, Pasi Oja-Nisula wrote: > Python magazine web site says this: > "So, sit back and relax - enjoy your holidays, and come see us again on > January 26th, when the new  PyMag will launch." -- http://mail.python.org/mailm

Re: ordinal not in range

2009-03-02 Thread Jaap van Wingerde
Stefan Behnel wrote: >> Jaap van Wingerde wrote: >> outfile = codecs.open(output, "w", "utf_8") > I guess you mixed up the case here. > Does this help? > outfile = codecs.open(output, "wb", encoding="UTF-8") According to the Python &q

Re: ordinal not in range

2009-02-21 Thread Jaap van Wingerde
ooks like you'd be happier with Python 3.0, BTW... Python 3 is not in Debian Lenny. With your help I made my first Python-script. This script saves me from hours dumb work. Thanks a lot!! -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.net -- http://mail.python.org/mailman/listinfo/python-list

ordinal not in range

2009-02-21 Thread Jaap van Wingerde
Stefan Behnel wrote: Omschrijving = Omschrijving.replace("priv?", 'privé') I Thank you, this works now, but I get a new error message. import codecs file = "postbank.csv" output = "%s.eb" % file outfile = codecs.open(output, "w", "utf_8") Omschrijving = u'priv? assuranti?n' # stri

TypeError: descriptor 'replace' requires a 'str' object but received a 'unicode'

2009-02-21 Thread Jaap van Wingerde
When I run this script I get the following message. "Traceback (most recent call last): File "/home/jaap/Desktop/unicode.py", line 3, in Omschrijving = str.replace(Omschrijving, "priv?", 'priv�') TypeError: descriptor 'replace' requires a 'str

Re: PHP like documentation?

2009-02-15 Thread Jaap van Wingerde
Pavan Mishra wrote: I was wondering if I can use python documentation source (reStructuredText) and restructure it along the lines of PHP documentation. Allowing users to add comments, improving search etc. I was thinking if it would be useful. Very good idea! -- Jaap van Wingerde e-mail