Nigel James :php8: 🇦🇺 · @Njames
207 followers · 565 posts · Server phpc.social

@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)

php.net/manual/en/book.datetim

#datetime #php

Last updated 2 years ago

Sharon Machlis · @smach
2325 followers · 307 posts · Server masto.machlis.com

Want to see the different percent-formatting options for dates in R, such as "%b %e, %Y" to get Aug 26, 2023? In run
?strptime
and scroll down a bit
@rstats

#rstats #dates #datetime

Last updated 2 years ago

PyLadies Bot · @pyladies_bot
113 followers · 112 posts · Server botsin.space
Oliver Sampson · @oliversampson
131 followers · 1134 posts · Server sigmoid.social
Edward · @cosmoscalibur
8 followers · 92 posts · Server col.social

Utiliza el módulo en para trabajar con fechas y horarios de manera eficiente. Manipula y formatea fechas, calcula diferencias de tiempo y realiza operaciones con intervalos. Aprovecha esta herramienta para tus necesidades relacionadas con el manejo del tiempo.

#datetime #python

Last updated 2 years ago

Are you ready to make this Mother's Day extra special? As programmers, we have the power to add a touch of magic to important dates like Mother's Day. Let's dive into some exciting R code that will help you find the next Mother's Day with ease and simplicity. 🎉 📆

Happy coding and Happy Mother's Day to all the amazing moms out there! 🌷

Post: spsanderson.com/steveondata/po

#posixlt #posixct #posix #Time #date #datetime #RStats #r #rprogramming #codingmagic #MothersDay

Last updated 2 years ago

Cliff Wade · @cliffwade
623 followers · 2169 posts · Server allthingstech.social

The wife and I ended up going to the mall as I had mentioned this morning. We did a bit of shopping as there were a few things she wanted and needed.

Spent about 3 hours there and then came home and ate lunch.

It's always good to spend time with the wife and just do whatever it is we want and like to do.

#happy #datetime #wife

Last updated 2 years ago

Matt · @mmcknett
50 followers · 149 posts · Server hachyderm.io

1. Have you ever wished you had someone on call for when you have to deal with dates, times, and time zones (or other things) in your components?
2. Would you sign up on a stranger’s calendly if they offered 1:1 help with problems like that and seemed like they had the expertise?

I’d love to know your initial reaction to the concept and especially hesitations.

#datetime

Last updated 2 years ago

theAdhocracy · @theadhocracy
30 followers · 122 posts · Server indieweb.social

I always have trouble generating valid HTML `datetime` attributes! The spec is strict, and I find that my incoming data/final copy rarely matches its requirements.

You'd think there would be a simple way to do this, but I'm yet to find it! 😅 So I figured I'd write myself a note on the best solution I've found *so far*.

(if you know of a better one, please lmk 😉)

A Valid HTML Datetime: theadhocracy.co.uk/wrote/a-val

#frontend #datetime #bringbackblogging #html

Last updated 3 years ago

Asbjørn Ulsberg · @bitbear
283 followers · 1269 posts · Server icosahedron.website

irb(main):007:0> Date.parse('abc123')
=> #<Date: 2023-05-03 ((2460068j,0s,0n),+0s,2299161j)>

Uh. Ok.

I had a hard time writing tests for a Liquid tag in Jekyll that used Ruby's Date object to parse a date string.

In the test, I used 'abc123' as an obvious (to me, at least), invalid date string.

To my surprise, the test did not fail as expected, but instead ended up with the valid date '2023-05-03', which I spent quite a while figuring out where came from. Turns out it came from my own test data.

#ruby #rspec #date #datetime #jekyll

Last updated 3 years ago

Paolo Melchiorre · @paulox
828 followers · 922 posts · Server fosstodon.org

@gagliardi_vale I would suggest you use "time-machine" instead, maintained by @adamchainz

" Travel through time in your tests."

github.com/adamchainz/time-mac

#python #testing #datetime #time

Last updated 3 years ago

Mathijs · @mathijs
50 followers · 424 posts · Server mastodon.lermer.nl
Psy'Aviah (Yves Schelpe) · @psyaviah
12 followers · 611 posts · Server mastodon-belgium.be

DYK: GNU units(1) can do simple “human readable relative times”? It can convert total number of seconds like this:

units "$(( $(date +%s) - $(date -d '2022-01-01T00:00' +%s) ))sec" "months;weeks;days;hrs;mins;sec"

🏷

#cli #datetime #unix

Last updated 3 years ago

Michal Bryxí · @MichalBryxi
122 followers · 163 posts · Server mastodon.coffee

So to automatically convert between `date` attribute in and native input of type -local one has to do something like this:

#emberdata #html #datetime

Last updated 3 years ago

Cheatography · @cheatography
1 followers · 13 posts · Server botsin.space

Just released: Pandas datetime Cheat Sheet by julenx

Download it free at cheatography.com/julenx/cheat-

Here's their description of it: Ways to process dates and time with Pandas

@cheatsheets

#cheatsheet #cheatsheets #python #pandas #datetime

Last updated 3 years ago

gaby_wald · @gaby_wald
70 followers · 16246 posts · Server framapiaf.org

" Il Est Maintenant Temps De Décomplexer Avec La Pas-Si-Nouvelle API Date & Time De Java " ... infoq.com/fr/articles/java-dat

#infoq #java #api #datetime #cleancode

Last updated 3 years ago

gaby_wald · @gaby_wald
74 followers · 16277 posts · Server framapiaf.org

" Il Est Maintenant Temps De Décomplexer Avec La Pas-Si-Nouvelle API Date & Time De Java " ... infoq.com/fr/articles/java-dat

#cleancode #datetime #api #java #infoq

Last updated 3 years ago

gaby_wald · @gaby_wald
87 followers · 16402 posts · Server framapiaf.org

" Il Est Maintenant Temps De Décomplexer Avec La Pas-Si-Nouvelle API Date & Time De Java " ... infoq.com/fr/articles/java-dat

#infoq #java #api #datetime #cleancode

Last updated 3 years ago

OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social