github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/time/earth/duration.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package earth
     4  
     5  import (
     6  	"../../protocol"
     7  )
     8  
     9  const (
    10  	// Common durations.
    11  	Nanosecond  protocol.Duration = 1
    12  	Microsecond                   = 1000 * Nanosecond
    13  	Millisecond                   = 1000 * Microsecond
    14  	Second                        = 1000 * Millisecond
    15  
    16  	// Earth specific durations
    17  	Minute = 60 * Second
    18  	Hour   = 60 * Minute
    19  	Day    = 24 * Hour
    20  	Week   = 7 * Day
    21  	Month  = 2629743 * Second  // 30.44 days
    22  	Year   = 31556926 * Second // 365.24 days
    23  )