Iced Raktajino@startrek.website to memes@lemmy.world · 4 days agoNever Forgetstartrek.websiteimagemessage-square39linkfedilinkarrow-up1766arrow-down17
arrow-up1759arrow-down1imageNever Forgetstartrek.websiteIced Raktajino@startrek.website to memes@lemmy.world · 4 days agomessage-square39linkfedilink
minus-squarePrettyFlyForAFatGuy@feddit.uklinkfedilinkarrow-up6·3 days agoI tried to do this with a cronjob I didn’t want to actually run. It didn’t work
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·3 days 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 );