this post was submitted on 13 Jun 2023
23 points (100.0% liked)

Programmer Humor

32453 readers
867 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] ElmiHalt@sopuli.xyz 4 points 1 year ago* (last edited 1 year ago) (1 children)

Well, I prefer not to put a "\n" in dates but you do you mate

[–] qaz@lemmy.world 1 points 1 year ago

You forgot the "\r" /s

[–] erre@feddit.win 2 points 1 year ago* (last edited 1 year ago)

In ISO8601 I trust.

[–] Fiech@discuss.tchncs.de 2 points 1 year ago

POSIX time or bust!

[–] daanzel@lemmy.world 2 points 1 year ago

As someone that works a lot with high-frequency sensor data, we need the microseconds too!! Use this one: %Y-%m-%d_%H:%M:%S.%f

[–] Celsiuss@lemmy.world 2 points 1 year ago

int time = 1686650138000;

[–] httpjames@sh.itjust.works 1 points 1 year ago

Unix timestamp on top

[–] adthrawn@lemmy.world 1 points 1 year ago

All other formats are inferior

[–] chkno@lemmy.ml 1 points 1 year ago

I accidentally the timezone.

load more comments
view more: next ›