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.177 -- Release Build+17e3a8c30c12a6a5a57ad4af156d7b83be281c33
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