Time format conversion breaks when tools guess. This article explains why Go and strftime differ, how to verify a directive-by-directive converter, and why named unmappable directives are a stronger engineering signal than silent substitutio
Time format conversion breaks when tools guess. This article explains why Go and strftime differ, how to verify a directive-by-directive converter, and why named unmappable directives are a stronger engineering signal than silent substitutio
http://az-pitam.org/old_bg.frisomat.net/index.php
Клод очакваше кошмарна миграция, но то няма какво да му се счупи
(Даже имал самоделен брояч на посещения, години преди Гугъл Аналитикс :D )
http://az-pitam.org/old_bg.frisomat.net/index.php
Клод очакваше кошмарна миграция, но то няма какво да му се счупи
(Даже имал самоделен брояч на посещения, години преди Гугъл Аналитикс :D )
It's also a format-guessing tool: paste a date string into it and it'll show you the format code that parses it.
Or scroll down the page for a table of common formats to pick from.
It's also a format-guessing tool: paste a date string into it and it'll show you the format code that parses it.
Or scroll down the page for a table of common formats to pick from.
astimezone().strftime("%Y-%m-%d %l:%M %p %Z")
That is, given a Salesforce date/time variable (which is in UTC), convert it to Pacific Time allowing for daylight […]
[Original post on sculpin.social]
astimezone().strftime("%Y-%m-%d %l:%M %p %Z")
That is, given a Salesforce date/time variable (which is in UTC), convert it to Pacific Time allowing for daylight […]
[Original post on sculpin.social]
Format dates with f-strings. 🧵
datetime objects support the same format codes in f-string format specifiers that the strftime method uses:
>>> deadline = datetime(2046, 10, 31, 15, 46)
>>> f"{deadline:%m/%d/%Y %I:%M %p}"
'10/31/2046 03:46 PM'
#Python #DailyPythonTip
Format dates with f-strings. 🧵
datetime objects support the same format codes in f-string format specifiers that the strftime method uses:
>>> deadline = datetime(2046, 10, 31, 15, 46)
>>> f"{deadline:%m/%d/%Y %I:%M %p}"
'10/31/2046 03:46 PM'
#Python #DailyPythonTip
>>> f"Published on {deadline:%B %d, %Y}"
'Published on October 31, 2046'
To this strftime call:
>>> "Published on " + deadline.strftime("%B %d, %Y")
'Published on October 31, 2046'
I usually prefer f-strings here: I'm used to reading them, so they feel more natural.
>>> f"Published on {deadline:%B %d, %Y}"
'Published on October 31, 2046'
To this strftime call:
>>> "Published on " + deadline.strftime("%B %d, %Y")
'Published on October 31, 2046'
I usually prefer f-strings here: I'm used to reading them, so they feel more natural.
1 in the system root partition
1 in the data-backup-tgz file, which is a known persistence technique being used by attackers in the wild.
I also […]
[Original post on infosec.exchange]
1 in the system root partition
1 in the data-backup-tgz file, which is a known persistence technique being used by attackers in the wild.
I also […]
[Original post on infosec.exchange]
github.com/documenso/do...
github.com/documenso/do...
"Introduction
Grouping data by week is a common task in data analysis. It allows you to summarize and analyze..."
https://www.r-bloggers.com/2024/02/from-chaos-to-clarity-mastering-weekly-data-wrangling-in-r-with-strftime/
"Introduction
Grouping data by week is a common task in data analysis. It allows you to summarize and analyze..."
https://www.r-bloggers.com/2024/02/from-chaos-to-clarity-mastering-weekly-data-wrangling-in-r-with-strftime/
If you count the number of published strftime() implementation, I think there are more than a 100.
If you count the number of published strftime() implementation, I think there are more than a 100.
#ifdef KITCHEN_SINK
case 'K':
/*
** After all this time, still unclaimed!
*/
pt = _add("kitchen sink", pt, ptlim);
continue;
#endif /* defined KITCHEN_SINK */
%U: Weeks start on Sunday, with the first Sunday of the year being week 1
%W: Weeks start on Monday, with the first Monday of the year being week 1
Both formats will return values from 00-53 […]
[Original post on mastodon.social]
%U: Weeks start on Sunday, with the first Sunday of the year being week 1
%W: Weeks start on Monday, with the first Monday of the year being week 1
Both formats will return values from 00-53 […]
[Original post on mastodon.social]