notsle, to programming
@notsle@kzoo.to avatar

The Time Lords have a special torture chamber on Gallifrey for app developers that write apps, used cross timezones but dont properly store timezone data.
#timezone #datetime #dev #programming #utc #doctorwho #timelords

larsmb, to random
@larsmb@mastodon.online avatar

Leap Days should be in winter. Everywhere.

I propose the Southern hemisphere holds theirs on August 32.

#DateTime

kushal, to python
@kushal@toots.dgplug.org avatar

https://strftime.org/ is always a very useful site

stevensanderson, to random
@stevensanderson@mstdn.social avatar
stevensanderson, to random
@stevensanderson@mstdn.social avatar

Drowning in daily data? Conquer weekly analysis with R's strftime() magic! Extract ISO week numbers & group your data like a pro. Ready to level up? Explore "U" for Sunday starts & packages for more grouping power. Challenge: calc weekly averages, peak sales, etc. Share your data wrangling wins in the comments!

Post: https://www.spsanderson.com/steveondata/posts/2024-02-12/

#R

image/png

sergi, to python
@sergi@floss.social avatar

Best practice for importing the datetime module in : https://sergiswriting.com/import-datetime/

pixel, to programming
@pixel@social.pixels.pizza avatar

Navigating the Complexities of Date and Time in Programming


https://scorpil.com/post/you-dont-need-datetime/

mkwadee, to random
@mkwadee@mastodon.org.uk avatar
azemon, to Humor
@azemon@babka.social avatar
osman, to programming
@osman@hachyderm.io avatar

“Once, a long time ago, I used to have a consulting gig in a big enterprise-y company… They were in charge of the un-sexy infrastructure… Summer was coming, and I inquired… whether they’ve deployed the latest DST-related patches… They replied that no, and in fact they’d like some help in ensuring DST transitioning is disabled on all workstations/servers, as this is how things work here”

https://blog.backslasher.net/no-dst.html

#datetime #timezones #programming

villares, to python Portuguese
@villares@ciberlandia.pt avatar

Hoje eu aprendi a converter um unix em uma data legível com

from datetime import datetime<br></br>ts = int('1284101485')<br></br><br></br># if you encounter a "year is out of range" error the timestamp<br></br># may be in milliseconds, try `ts /= 1000` in that case<br></br>print(datetime.utcfromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S'))<br></br>

https://stackoverflow.com/a/3682808/19771

Njames, to php
@Njames@phpc.social avatar

@derickr Hey Derick is there a chance that a native H:M:S to decimal hours converter could be added to the functions in ?

It is quite a common activity for calculating someones pay to go from 3h45m -> 3.75 h (mulitplied by $/h)

https://www.php.net/manual/en/book.datetime.php

hugovk, to python
@hugovk@mastodon.social avatar
glyph, to python
@glyph@mastodon.social avatar

Is it possible to get a zoneinfo.ZoneInfo key (i.e.: IANA tzdb identifier) for the current system timezone, in Python? datetime.now(timezone.utc).astimezone(). gives a potentially ambiguous 'tzname' and 'utcoffset' which make it difficult to communicate long-term time intervals to other systems

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • khanakhh
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • everett
  • rosin
  • ngwrru68w68
  • kavyap
  • thenastyranch
  • JUstTest
  • cubers
  • tacticalgear
  • osvaldo12
  • GTA5RPClips
  • cisconetworking
  • modclub
  • Durango
  • Leos
  • normalnudes
  • megavids
  • tester
  • anitta
  • lostlight
  • All magazines