---
title: "Class TimeUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common/TimeUtils/"
---

# Class TimeUtils

> **Inheritance:** `System.Object` -> TimeUtils

###### **Namespace**: [Aurigma.DesignAtoms.Common](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class TimeUtils
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### TimeUtils

```csharp
public TimeUtils()
```

## Methods

### MilliTimeStamp

```csharp
public static double MilliTimeStamp(DateTime d1, DateTime d2)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.DateTime` | *d1* |  |
| `System.DateTime` | *d2* |  |

##### Returns

`System.Double`

### MilliTimeStampNow

```csharp
public static double MilliTimeStampNow()
```

##### Returns

`System.Double`

### MilliTimeStampFromCompEra

```csharp
public static double MilliTimeStampFromCompEra(DateTime d)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.DateTime` | *d* |  |

##### Returns

`System.Double`

### GetServerTimeZoneUtcOffset

```csharp
public static int GetServerTimeZoneUtcOffset()
```

##### Returns

`System.Int32`

### MilliTimeStampNowJsonUtcString

```csharp
public static string MilliTimeStampNowJsonUtcString()
```

##### Returns

`System.String`

### JsonUtcDateString

```csharp
public static string JsonUtcDateString(double millis)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Double` | *millis* |  |

##### Returns

`System.String`

### JsonUtcDateString

```csharp
public static string JsonUtcDateString(DateTime date)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.DateTime` | *date* |  |

##### Returns

`System.String`
