Javatpoint Logo
Javatpoint Logo

GO Epoch

In Go, We can produce the time in seconds, milliseconds, nanosecond . The time package has the required methods like secs, nanos etc which help us.

The reference time is the unix epoch. We may also convert nanoseconds or milliseconds into time format.

Output:

2017-10-06 17:34:13.971527666 +0530 IST m=+0.000334769
1507291453
1507291453971
1507291453971527666
2017-10-06 17:34:13 +0530 IST
2017-10-06 17:34:13.971527666 +0530 IST

Next TopicGo Tickers




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA