mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

14K
active users

#localtime

0 posts0 participants0 posts today
Replied in thread

...
#python3 -c 'import time; print(time.localtime(-17890896514))'
time.struct_time(tm_year=1403, tm_mon=1, tm_mday=23, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=23, tm_isdst=0)

#perl -e 'print join q[ ], localtime(-17890896514)'
0 0 0 23 0 -497 0 22 0

... funny thing is (Perl) "localtime" function in scalar context produces, as a string, sensible individual values (format sucks however) ...

perl -e 'print scalar localtime(-17890896514)'
Sun Jan 23 00:00:00 1403

#C #localtime(3)

Replied in thread

@sundew @aphyr Blame that on #C & programming language makers continuing to use, expose the underlying foundation; see "#localtime(3)" & friends man.freebsd.org/cgi/man.cgi?qu -- search for "External declaration" (could not quote fields of "tm" structure with comments due to the character limit of the server).

In this respect, #Python "time.struct_time", 9-element tuple, docs.python.org/3/library/time has better structure (year is not based around 0 for you to add 1900 to it as it does in fucking #Perl; etc)

man.freebsd.orglocaltime(3)

Mehr Zeit mit FreshMarker

Einer der Gründe für die Entwicklung der FreshMarker Bibliothek, war die fehlende Unterstützung der Java Time API in FreeMarker. Daher existierte schon in der ersten Implementierung neben der Unterstützung für java.util.Date, java.sql.Date und java.sql.Time auch eine Unterstützung f

schegge.de/2023/05/mehr-zeit-m

#BestPractices #Bibliotheken #Java #Format #FreeMarker #FreshMarker #Java #LocalDate #LocalTime #Template #Template-Engine