setTime

Summary

Sets the time value of the System.Date object.

Signatures

Click on a signature to select it and view its documentation.

Usage

public double setTime(double time)

Returns

The current time value of the System.Date object, which represents the difference in milliseconds from the updated date/time and 1 January 1970 00:00:00:00 UTC. This is effectively the argument supplied to the setTime method.

Parameters

time

The number of milliseconds elapsed since 1 January 1970 00:00:00:00 UTC.

Description

Sets the time value of the System.Date object.

Examples

Basic Usage
1
2
3
4
5
import System;
 
Date d = new Date();
d.setTime(1296547200000);
Console.log(d.toString());

Share

HTML | BBCode | Direct Link