Iced Raktajino@startrek.website to memes@lemmy.world · 5 days agoNever Forgetstartrek.websiteexternal-linkmessage-square38linkfedilinkarrow-up1921arrow-down17
arrow-up1914arrow-down1external-linkNever Forgetstartrek.websiteIced Raktajino@startrek.website to memes@lemmy.world · 5 days agomessage-square38linkfedilink
minus-squareBuddahriffic@lemmy.worldlinkfedilinkarrow-up1·edit-24 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 );
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 );