this post was submitted on 31 Mar 2026
913 points (99.5% liked)

memes

20768 readers
1574 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] PrettyFlyForAFatGuy@feddit.uk 6 points 2 days ago (1 children)

I tried to do this with a cronjob I didn't want to actually run.

It didn't work

[โ€“] Buddahriffic@lemmy.world 1 points 2 days ago* (last edited 2 days ago)

Ah you thought they did it like:

if ( date == target_date ) { \ do the thing }

But it was really:

time_to_target = convert_date_to_time_to( target_date ); // always returns the closest time to whatever date you specify (even if the date doesn't exist (March 31st does exist))
do_thing_in_x_time( the_thing, time_to_target );