getUTCHours

Summary

Returns the hour of the System.Date object according to Coordinated Universal Time (UTC).

Usage

public int getUTCHours()

Returns

The hour of the System.Date object according to Coordinated Universal Time (UTC).

Description

Returns the hour of the System.Date object according to Coordinated Universal Time (UTC).

Examples

Basic Usage
1
2
3
4
import System;
 
Date d = new Date(2011, Date.Month.FEB, 10, 5);
Console.log(d.getUTCHours()); // 13

Share

HTML | BBCode | Direct Link