by: Richard Shea |
last post by:
Hi - I'm trying to use strftime to output the day of the week but I
find that I always get told it's Monday. I have tried day, month, year
etc and all come out correctly but as soon as I use %a I...
|
by: John Hunter |
last post by:
>>> from datetime import date
>>> dt = date(1005,1,1)
>>> print dt.strftime('%Y')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: year=1005 is before 1900; the...
|
by: Sheila King |
last post by:
I have a web app that has been running just fine for several months under
Python 2.2.2.
We are preparing to upgrade the server to run Python 2.4.1.
However, part of my web app is throwing an...
|
by: Andy Leszczynski |
last post by:
Python 2.2/Unix
>>time.strftime("%T")
'22:12:15'
>>time.strftime("%X")
'22:12:17'
Python 2.3/Windows
>>time.strftime("%X")
|
by: Mike Conmackie |
last post by:
Greetings,
Is there any way to force strftime() to ignore locale settings when
formatting the resulting string? I have a requirement to create a specific
date-time string format in UTC. ...
|
by: Dennis Benzinger |
last post by:
Is there a library with a strftime replacement which supports Unicode
format strings?
Bye,
Dennis
|
by: HSeganfredo |
last post by:
Folks, my code below truncates the output as:
chars 0,200709
chars 0,1839
If I change to:
i = strftime(date, 9, "%Y%m%d", brokentime);
j = strftime(hour, 7, "%H%M%S", brokentime);
it...
|
by: Giovanni Bajo |
last post by:
Hello,
I am trying to find a good way to portably get the output of strftime()
and put it onto a dialog (I'm using PyQt, but it doesn't really matter).
The problem is that I need to decode the...
|
by: eskgwin |
last post by:
I have this piece of code that takes a day of the year and converts it
to the month and day of month:
char start_mon;
char start_day;
int s_day = 84;
time_t daysecs = (s_day * 86400) - 1;...
|
by: Andrii V. Mishkovskyi |
last post by:
2008/5/7 Alexandr N Zamaraev <tonal@promsoft.ru>:
Unicode and str objects are not the same. Why do you think that this
is a bug? Anyway, you can always use 'encode' method of unicode
objects:
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|