Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
3 votes
2 answers
152 views

I have an application where I need to generate date and time based on the locale using the strftime function provided by C's time.h: #include <stdio.h> #include <time.h> #include <...
3 votes
3 answers
210 views

I'm getting some strange behavior when I pass a UTC time struct to python's time.strftime. Using %z seems to always give me my local offset rather than 0: >>> import time >>> a = ...
onlynone's user avatar
  • 8,547
0 votes
3 answers
72 views

Is it possible in pandas to input alternating strftime() formats for the same placeholder in my word document? So, let’s say the first row is "(%y %m %d)"; the second row is "(%d %m %y)&...
sam 622's user avatar
1 vote
1 answer
96 views

I've written a python script that uses strftime() from the time module. On my windows 10 computer I get the long form format for time zone when I call strftime("%Z"), and I want to ...
5 votes
3 answers
190 views

I was looking at the format specifiers and noticed that %n and %t were listed as valid specifiers. According to the documentation, the insert a new line and a horizontal tab character, respectively. ...
Haruki's user avatar
  • 329
7 votes
2 answers
896 views

I have a polars dataframe that contains a datetime column. I want to convert this column to strings in the format %Y%m. For example, all dates in January 2024 should be converted to "202401"....
0 votes
2 answers
170 views

I have a Pandas dataframe which looks like: import pandas as pd df = pd.DataFrame({'datetime':[ 'Jan 20, 2000 12:00:00', 'Jan 20, 2000 12:00:00.5', 'Jan 20, 2000 12:00:01' ]}) df ...
4 votes
2 answers
231 views

I have been using tools like iperf3 when using its --timestamps feature that uses strftime under the hood for formatting time. Although I have seen examples that show the conversion specifier %s used ...
kyrlon's user avatar
  • 1,442
0 votes
0 answers
105 views

PHP on command line shows E_DEPRECATED even when error_reporting() has been set to only report E_ERROR. I have this dummy code: $prev_level = error_reporting(E_ERROR); echo $prev_level."\n"; ...
1 vote
1 answer
69 views

I am trying to create a query that delete all records that are 30 days old and above. Using ChatGPT this is what it came up DELETE FROM posts WHERE strftime('%s', 'now') - strftime('%s', date) >= ...
1 vote
2 answers
165 views

In my Django project, I'm using strftime, specifically %b to get the abbreviated month name. Those names are returned in english. My settings contain the following: LANGUAGE_CODE = 'de' # also tried '...
R-obert's user avatar
  • 619
-1 votes
1 answer
97 views

date = '10624'. here, 1 is month i.e. Jan, 06 is day, 24 is Year. I don't want to use any formatting on string (like add 0 at start in string or strip this string into small parts). I want to convert ...
0 votes
1 answer
75 views

I am creating a Discord bot. When you enter the command, it is supposed to give a timestamp of the current time. I did this with strftime. But whenever the command is entered, the hours keep coming up ...
2 votes
2 answers
1k views

I want to print the current time in ISO 8601 format as close as possible to Python's isoformat() function, which produces output like 2024年01月16日T09:32:46.090+01:00. As a starting point, I have this ...
RubenLaguna's user avatar
  • 25.6k
0 votes
1 answer
323 views

My dataframe looks like this: We see category values for a given Date/Time timestamp, showing year, month, day, and the time. Plotted as a lineplot in seaborn, the x-axis looks like this: Here we ...

15 30 50 per page
1
2 3 4 5
...
49

AltStyle によって変換されたページ (->オリジナル) /