Gemstone Common Library
Show/Hide TOC

# TimeSecondsPerYear Method

Returns the number of seconds in the specified year.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public static long SecondsPerYear(
    	int year
    )

VB
View Source Request Example

    Public Shared Function SecondsPerYear (
    	year As Integer
    ) As Long

C++
View Source Request Example

    public:
    static long long SecondsPerYear(
    	int year
    )

JavaScript
View Source Request Example

    Gemstone.Units.Time.SecondsPerYear = function(year);

#### Parameters

year Int32
  The year.

#### Return Value

Int64
The number of seconds in the specified year.

## Exceptions

ArgumentOutOfRangeException | Year is less than 1 or greater than 9999.

## See Also

#### Reference

Time Structure
Gemstone.Units Namespace