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.162 -- Release Build+f11797ef017301be20d4b9376f78ac29ba38c21a
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