Iced Raktajino@startrek.website to memes@lemmy.world · 1 day agoNever Forgetstartrek.websiteimagemessage-square38fedilinkarrow-up1906arrow-down16
arrow-up1900arrow-down1imageNever Forgetstartrek.websiteIced Raktajino@startrek.website to memes@lemmy.world · 1 day agomessage-square38fedilink
minus-squarePrettyFlyForAFatGuy@feddit.uklinkfedilinkarrow-up6·6 hours agoI tried to do this with a cronjob I didn’t want to actually run. It didn’t work
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·edit-24 hours agoAh 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 );
I tried to do this with a cronjob I didn’t want to actually run.
It didn’t work
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 );