Doing “Date” of #Javascript quiz https://jsdate.wtf/ ; learned …
- Date(“0”) returns fucking 20000101 instead of throwing error or returning 19700101;
- .parse function coerces number to string instead of throwing error or using that as timestamp;
- string that cannot be a date is returned as fucking Date object ;
-- even terrible fun is differing behaviors of .toTimeString, .toISOString functions
- after being primed for “[01]” strings, “2” turns out rather different!
…
#ntpd won't save you from one particular rogue bit, 20170927,
via #RachelByTheBay,
https://rachelbythebay.com/w/2017/09/27/2153/
... via Calculating rollovers [https://rachelbythebay.com/fun/counter/ ], 20250624,
https://rachelbythebay.com/w/2025/06/24/rollover/
"#leapSecondSmearing" in practice ...
Pushing the whole company into the past on purpose, 20250109,
via #RachelByTheBay,
https://rachelbythebay.com/w/2025/01/09/lag/
Looks like @github fucked up dates and times ...
rust-y software
Why are 2025/05/28 and 2025-05-28 different days in #JavaScript? 20250528^0,
https://brandondong.github.io/blog/javascript_dates/
… via https://lobste.rs/s/pslyxg/why_are_2025_05_28_2025_05_28_different_days
0- Taken as Unix epoch millisecond is “1970-01-01T05:37:30.528Z“ per Javascript “Date”. Date (at 00:00:00 UTC) is 1748390400 in Unix epoch second.
Help with #WWVB #RadioControlled Clocks, updated 20241011,
https://www.nist.gov/pml/time-and-frequency-division/time-distribution/radio-station-wwvb/help-wwvb-radio-controlled
... via a response to the rant of the buyer of radio-controlled Casio G-Shock watch which (is not|having problem) receiving the signal.
@cheewai Had not seen date in “%b/%d/%Y” format before, eg “Mar/20/2023”.
Of all the python date/time modules, the first one that needs banning is dateutil.
#Python #DateTime #PythonDateUtil
whenever Modern #datetime library for #Python
- https://github.com/ariebovenberg/whenever/tree/0.8.0
- https://whenever.readthedocs.io/en/latest/
- https://dev.arie.bovenberg.net/blog/python-datetime-pitfalls/
A big release with several improvements and breaking changes that lay the groundwork for the eventual 1.0 release.
Whenever – typed and DST-safe datetimes for Python
https://github.com/ariebovenberg/whenever
#HackerNews #Whenever #Python #DST-safe #datetimes #datetime #PythonDev
- https://whenever.readthedocs.io/en/latest/#why-use-whenever
whenever helps you write correct and type checked datetime code
Why use whenever ?
DST-safe arithmetic
Typesafe API prevents common bugs
Fixes issues arrow/pendulum don’t
Based on proven and familiar concepts
️ Unmatched performance
Thoroughly tested and documented
Support for date arithmetic
… “speak-time” …
1- [Current Date]
2- [Format Date]: Date format: Custom; Format string: EEEE, dd MMM h:ss a
3- [Speak Text] Formatted Date
On #iOS (18) there ought to be a way to [Speak Text] time (easy, done) after alarm goes off via “Shortcuts” application!
Ideally spoken time would be alarm action/tone.
Setting the alarm from input is easily done. Combining the 2 needs work.
Could get the time for “alarm”; instead of [Create Alarm For], would calculate the time difference (wrt current time; already done previously for its own use) to [Wait] before “speak-time”.
C# DateTime to SQL Server: Solving Date Formatting Errors in Stored Procedures
Avoid C# DateTime SQL Server errors! Learn how to handle date formatting issues in stored procedures using SqlParameter & error management for seamless data integration. CSharp #.NET #SQLServer #DateTime #Database #Programming
https://tech-champion.com/database/c-datetime-to-sql-server-solving-date-formatting-errors-in-stored-procedures/
Troubleshooting C# DateTime issues when inserting into SQL Server stored...