r/badcode • u/misterblue28 • Aug 26 '21
php I'm currently working on a project which contains this line of code. Admittedly the lack of context doesn't help, but still.
102
Upvotes
r/badcode • u/misterblue28 • Aug 26 '21
12
u/_PM_ME_PANGOLINS_ Aug 26 '21
Is this just before a loop that’s going to set it back seven days instead of using a competent datetime library?
2
u/misterblue28 Aug 26 '21
alternatively it's a political commentary on the stagnation of US currency
8
u/Impossible_Average_1 Aug 26 '21
OMG! I don't remember what I was doing seven days ago. This code is erasing the past!
18
u/alexanderhameowlton Aug 26 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
6
u/ztbwl Aug 26 '21
⚠️WARNING: Don‘t run that code in an endless loop, you will die instantly.
4
u/devhashtag Aug 26 '21
I mean, if this runs once a week I get jt
3
u/Uchimamito Aug 26 '21
Looks like time travel to me
1
u/Inopmin Aug 26 '21
Future to the back
1
u/[deleted] Aug 27 '21
The futur... Past is now!