#datetime
You're gonna get assassinated by someone who maintains a datetime computer function.
November 1, 2026 at 2:09 PM
Lots of systems are having issues. If yours is, set the timezone to Mountain Standard. It may fix them. Datetime libs are a mess.
Happy "what if Y2K was just about meeting invites potentially being off by an hour" Day, Western Canada!
November 2, 2026 at 3:18 AM
datetime – What is the difference between UTC and GMT? – Stack Overflow

[Wayback/Archive] datetime - What is the difference between UTC and GMT? - Stack Overflow TL;DR: they used to be different but have been the same for a while now. The difference is summarised in [Wayback/Archive] Hans Kruse on…
datetime – What is the difference between UTC and GMT? – Stack Overflow
[Wayback/Archive] datetime - What is the difference between UTC and GMT? - Stack Overflow TL;DR: they used to be different but have been the same for a while now. The difference is summarised in [Wayback/Archive] Hans Kruse on Twitter: "TIL; I should use OffsetDateTime in Java. An interesting discussion on UTC vs GMT and the historical differences was posted on Stackoverflow.
wiert.me
November 3, 2026 at 11:00 AM
Laravel Daily: Datetime vs Timestamp - Differences - https://kensbookinfo.blogspot.com/p/end-of-line.html#LaravelDaily
November 3, 2026 at 9:04 PM
yeah rule number 1 of programming, never do any datetime programming just use whatever black box libraries the elders have left for us to inherit lmao
November 1, 2026 at 12:06 AM
📦 yii2-extended/yii2-export-policy-datetime 9.0.13

An implementation of the yii2 export policy interface that creates files for each models and one of their date field values

🔗 https://gitlab.com/yii2-extended/yii2-export-policy-datetime
November 1, 2026 at 4:59 PM
Don't forget: daylight savings ends in many parts of North America on Sunday, November 1. ☀️ Luckily, our #PowerQuery recipe for converting a UTC DateTime to a Local DateTime is daylight savings aware. Get the full collection: skw-t.com/pqrecipes

#Excel #PowerBI #DataAnalytics #BusinessIntelligence
October 30, 2026 at 5:35 PM
Flask: trả JSON đúng định dạng cho datetime và Decimal bằng custom JSON provider trong 5 phút

Flask có jsonify() sẵn, nhưng định dạng mặc định của nó không thân thiện với frontend: datetime bị chuyển thành chuỗi kiểu Mon, 02 Nov 2026 14:00:00 GMT, còn Decimal thành chuỗi "129900.50" thay vì số.…
Flask: trả JSON đúng định dạng cho datetime và Decimal bằng custom JSON provider trong 5 phút
Flask có jsonify() sẵn, nhưng định dạng mặc định của nó không thân thiện với frontend: datetime bị chuyển thành chuỗi kiểu Mon, 02 Nov 2026 14:00:00 GMT, còn Decimal thành chuỗi "129900.50" thay vì số. Giải pháp là viết một custom JSON provider kế thừa DefaultJSONProvider, chuyển datetime sang ISO 8601 và Decimal sang float, rồi gắn vào app qua…
linhfish.dev
November 2, 2026 at 7:07 AM
But most Python programmers use "from" imports at least occasionally, if not frequently.

I only use whole-module imports for names that are unclear on their own. For datetime, I import the whole module but rename it to dt (see tip #257).
Trey Hunner (@trey.io)
Python Tip #257 (of 365): Consider "import datetime as dt". 🧵 The fact that the datetime module and the datetime class are spelled the same way is VERY confusing. #Python #DailyPythonTip
bsky.app
October 31, 2026 at 6:04 PM
Python: xử lý múi giờ đúng bằng zoneinfo — hết lỗi naive/aware trong 5 phút

Khi code Python làm việc với giờ giấc ở nhiều múi giờ, cách đúng là luôn dùng datetime "aware" — tức datetime có gắn tzinfo — với zoneinfo.ZoneInfo, lưu trữ ở UTC và chỉ chuyển sang giờ địa phương khi hiển thị. Cách này áp…
Python: xử lý múi giờ đúng bằng zoneinfo — hết lỗi naive/aware trong 5 phút
Khi code Python làm việc với giờ giấc ở nhiều múi giờ, cách đúng là luôn dùng datetime "aware" — tức datetime có gắn tzinfo — với zoneinfo.ZoneInfo, lưu trữ ở UTC và chỉ chuyển sang giờ địa phương khi hiển thị. Cách này áp dụng khi bạn lưu timestamp vào database, ghi log, đặt lịch hẹn, hay so sánh thời gian giữa các múi giờ.
linhfish.dev
November 4, 2026 at 9:04 AM
Linh Fish Dev Podcast #23: Python xử lý múi giờ đúng bằng zoneinfo — hết lỗi naive/aware trong 5 phút

Datetime naive không gắn múi giờ là nguyên nhân của nhiều lỗi lệch giờ khó bắt: không chuyển đổi được đáng tin cậy, và so sánh với datetime aware sẽ ném lỗi ngay. Trong tập này, Linh Fish Dev…
Linh Fish Dev Podcast #23: Python xử lý múi giờ đúng bằng zoneinfo — hết lỗi naive/aware trong 5 phút
Datetime naive không gắn múi giờ là nguyên nhân của nhiều lỗi lệch giờ khó bắt: không chuyển đổi được đáng tin cậy, và so sánh với datetime aware sẽ ném lỗi ngay. Trong tập này, Linh Fish Dev Podcast #23 giải thích vì sao không bao giờ nên cộng trừ giờ bằng tay, và cách dùng module zoneinfo có sẵn từ Python 3.9 để luôn lưu thời gian ở UTC rồi chỉ chuyển sang giờ địa phương khi hiển thị bằng astimezone.
linhfish.dev
November 4, 2026 at 12:38 PM
#cakephpのメモ 10

CakePHP×MySQLで
datetime型のカラムの日時情報を
秒まで表示したいとき,
工夫が必要。
https://blog.s-giken.net/427.h...

ORMからの検索結果に対し
$record->created->i18nFormat("yyyy/MM/dd HH:mm:ss")
これで秒まで表示できる。

DateTime()やstrtotime()だと
秒が0になる。
November 1, 2026 at 5:38 PM
Dateparser turns "3 days ago", "15 Mar 2022" and non-English month names into a Python datetime. What it handles, how to set it, and where it needs help. https://zpr.io/JfCjX2mgrXWA

#webscraping #webdata #web #data #zyte
Dateparser: a date parsing library for Python
Dateparser turns "3 days ago", "15 Mar 2022" and non-English month names into a Python datetime. What it handles, how to set it, and where it needs help.
zpr.io
November 2, 2026 at 8:36 AM
Great catch on the PyYAML date parsing quirk. Because datetime date isn't caught by the primitive isinstance checks, falling through to the open {} schema is definitely a leak. Explicitly normalizing those temporal types 1/2
November 1, 2026 at 7:46 PM
Docs: https://clickhouse.com/docs/reference/statements/create/table/codec

The columns: ts DateTime CODEC(DoubleDelta, ZSTD), temp Float64 CODEC(Gorilla, ZSTD), visits UInt32 CODEC(T64, ZSTD). Timestamps went 1.06GB → 37.5MB. The data was built to compress well, so check yours in system.columns.
November 2, 2026 at 3:01 PM
from datetime import datetime

now = datetime.now()
print now
October 27, 2026 at 4:08 PM
#lainchan #error

{"readyState":4,"responseText":"{\"error\":\"Caught fatal error: Uncaught PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\\\\\\\xF0\\\\\\\x9F\\\\\\\x8E\\\\\\\x83' for column `lainchan`.`posts_vis`.`body` at row 1 in […]
Original post on mastodon.social
mastodon.social
October 31, 2026 at 2:33 PM
from datetime import datetime

now = datetime.now()
print now.year
print now.month
print now.day
now.day
October 27, 2026 at 4:09 PM
📦 pecl/timezonedb 2026.6

This extension is a drop-in replacement for the builtin timezone database that comes with PHP.

🔗 https://github.com/php/pecl-datetime-timezonedb
October 29, 2026 at 2:00 PM
📦 yii2-extended/yii2-export-policy-datetime 9.0.12

An implementation of the yii2 export policy interface that creates files for each models and one of their date field values

🔗 https://gitlab.com/yii2-extended/yii2-export-policy-datetime
October 28, 2026 at 11:00 AM
📋 TOKIMEKI DID & DateTime Copy Plus & Open Bluesky v1.7
github.com/neon-aiart/t...

TOKIMEKIで、ハンドルの変更に左右されない"DIDベースのURL"のコピーや投稿日時のワンクリックコピー、さらに"Blueskyで直接開く機能"を備えたUserScriptです
GitHub - neon-aiart/tokimeki-did-copy-plus: Adds "Copy URL with DID" to the post menu on TOKIMEKI(Bluesky client).
Adds "Copy URL with DID" to the post menu on TOKIMEKI(Bluesky client). - neon-aiart/tokimeki-did-copy-plus
github.com
October 28, 2026 at 10:59 PM
🚨 EUVD-2026-113902
📊 n/a

📝 DateTime::Lite versions before 0.8.1 for Perl allow CPU exhaustion via a per-day loop when adding seconds.

_normalize_leap_seconds crosses day boundaries one day at...

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113902

#cybersecurity #infosec #cve #euvd
October 30, 2026 at 4:06 PM