Keeping a log of the technical topics I am learning. These days those topics are centered around DeFi and Solidity programming. Absolutely not financial advice.
Get time in HH:mm format regardless of the local culture
DateTime.Now.ToShortTimeString() returns a string that depends on the culture.
DateTime.Now.ToString("HH:mm") is deterministic.
Use DateTime.Now.ToUniversalTime.ToString("HH:mm") to get the current HH:mm time in UTC.
No comments:
Post a Comment