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.151 -- Release Build+cb63b4525778c53d196bb55bacd9a49fac1f0f07
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