You know that your language's clock/time API's are broken and they are not reliable at all.
So you are not allowed to use any built-in API to access system time/date.
But you also know that your language's ability to perform date math, and retaining a date/time value in a variable are correct.
Write a program that prints the current date/time without calling any date/time/clock API's. For example DateTime.Now
, GetDate()
and similar functions are not allowed.
The answer with most upvotes wins.
In case of a tie, the answer with more precision wins (that is, accurate up to seconds, then milliseconds, then microseconds, and so on).
print(input("Please enter the current time"))
. \$\endgroup\$