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.172 -- Release Build+241430fabc9f8d815f226ef82f939af6835b2b48
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