# Hasp.GetRtc Method

Namespace: Aladdin.Hasp

## Description

Reads the current time from:

>a Sentinel HL Time key

>a Sentinel HL NetTime key

>a Sentinel HL (Driverless configuration) key that supports V-Clock

(The method works for a Sentinel SL key, but reads the time from the computer's clock.)

## Syntax

    HaspStatus GetRtc ( ref DateTime time )

## Parameters

`time` | A reference to a System.DateTime that receives the Hasp time

## Return Values

KilledSession

A HaspStatus status code.

## Usage Notes

Primarily used to obtain reliable timestamps that are independent of the system clock. Time values are returned as the number of seconds that have elapsed since Jan.-01-1970 0:00 hours UTC. This method reads the Sentinel protection key time, not the expiration date time.