© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_19

19. Dates, Times, and Durations

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe the features provided by the time package, which is the part of the standard library responsible for representing moments in time and durations. Table 19-1 puts these features in context.
Table 19-1

Putting Dates, Times, and Durations in Context

Question

Answer

What are they?

The features provided by the time package are used to represent specific moments in time and intervals or durations.

Why are they useful?

These features are useful in any application that needs to deal with calendaring or alarm and for the development ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.