How to realize the Fast conversion of time Stamp by linux
Editor to share with you how linux to achieve rapid conversion of timestamps, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Fast conversion of timestamp
Time operation is a common occurrence for programmers. Sometimes you want to be able to convert the timestamp to date time, or you can convert it quickly on the Linux command line:
$date-dong1234567890 + "Y-%m-%d H:%M:%S"
2009-02-14 07:31:30
Of course, you can also view the current timestamp on the command line
$date +% s
1617514141 and above are all the contents of the article "how to achieve Fast conversion of timestamps in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!