C# 클래스 System.Date

Represents the ECMA Date object.
파일 보기 프로젝트 열기: vannatech/blade 1 사용 예제들

공개 메소드들

메소드 설명
Date ( )

Initializes a new instance of the Date class.

Date ( int year, int month, int date, int hours, int minutes, int seconds, int milliseconds )

Initializes a new instance of the Date class.

Date ( long milliseconds )

Initializes a new instance of the Date class.

Date ( string dateString )

Initializes a new instance of the Date class.

UTC ( ) : int

Gets the number of milliseconds in a date string sine Jan 1, 1970, in universal time.

getDate ( ) : int

Get the day of the month.

getDay ( ) : int

Gets the day of the week.

getFullYear ( ) : int

Gets the full year.

getHours ( ) : int

Gets the hour.

getMilliseconds ( ) : int

Gets the milliseconds.

getMinutes ( ) : int

Gets the minutes.

getMonth ( ) : int

Gets the month.

getSeconds ( ) : int

Gets the seconds.

getTime ( ) : int

Get the number of milliseconds since Jan 1, 1970.

getTimezoneOffset ( ) : int

Gets the time difference between GMT and local time, in minutes.

getUTCDate ( ) : int

Gets the day of the month, in universal time.

getUTCDay ( ) : int

Gets the day of the week, in universal time.

getUTCFullYear ( ) : int

Gets the year, in universal time.

getUTCHours ( ) : int

Gets the hour, in universal time.

getUTCMilliseconds ( ) : int

Gets the milliseconds, in universal time.

getUTCMinutes ( ) : int

Gets the minutes, in universal time.

getUTCMonth ( ) : int

Gets the month, in universal time.

getUTCSeconds ( ) : int

Gets the seconds, in universal time.

now ( ) : int

Gets the current date and time as an offset in milliseconds since Jan 1, 1970.

parse ( string dateString ) : int

A string representing a date.

setDate ( int date ) : void

Sets the day of the month, from 1-31.

setFullYear ( int year ) : void

Sets the four digit year.

setHours ( int hour ) : void

Sets the hour, from 0-23.

setMilliseconds ( int milliseconds ) : void

Sets the milliseconds, from 0-999.

setMinutes ( int minute ) : void

Set the minutes, from 0-59.

setMonth ( int month ) : void

Sets the month, from 0-11.

setSeconds ( int second ) : void

Sets the seconds, from 0-59.

setTime ( int millisecond ) : void

Sets the time as an offset in milliseconds from Jan 1, 1970.

setUTCDate ( int month ) : void

Sets the day of the month, in universal time, from 1-31.

setUTCFullYear ( int year ) : void

Set the four digit year, in universal time.

setUTCHours ( int hour ) : void

Sets the hour, in universal time, from 0-23.

setUTCMilliseconds ( int millisecond ) : void

Sets the milliseconds, in universal time, from 0-999.

setUTCMinutes ( int minute ) : void

Set the minutes, in universal time, from 0-59.

setUTCMonth ( int month ) : void

Sets the month, in universal time, from 0-11.

setUTCSeconds ( int second ) : void

Set the seconds, in universal time, from 0-59.

toDateString ( ) : string

Gets the date portion of a date object as a string.

toLocaleDateString ( ) : string

Gets the date portion of a date object as a string, using locale conventions.

toLocaleTimeString ( ) : string

Gets the time portion of a date object as a string, using locale conventions.

toTimeString ( ) : string

Gets the time portion of a date object as a string.

toUTCString ( ) : string

Gets a date string, in universal time.

메소드 상세

Date() 공개 메소드

Initializes a new instance of the Date class.
public Date ( )

Date() 공개 메소드

Initializes a new instance of the Date class.
public Date ( int year, int month, int date, int hours, int minutes, int seconds, int milliseconds )
year int The year.
month int The month.
date int The date.
hours int The hours.
minutes int The minutes.
seconds int The seconds.
milliseconds int The milliseconds.

Date() 공개 메소드

Initializes a new instance of the Date class.
public Date ( long milliseconds )
milliseconds long The milliseconds.

Date() 공개 메소드

Initializes a new instance of the Date class.
public Date ( string dateString )
dateString string The date string.

UTC() 공개 정적인 메소드

Gets the number of milliseconds in a date string sine Jan 1, 1970, in universal time.
public static UTC ( ) : int
리턴 int

getDate() 공개 메소드

Get the day of the month.
public getDate ( ) : int
리턴 int

getDay() 공개 메소드

Gets the day of the week.
public getDay ( ) : int
리턴 int

getFullYear() 공개 메소드

Gets the full year.
public getFullYear ( ) : int
리턴 int

getHours() 공개 메소드

Gets the hour.
public getHours ( ) : int
리턴 int

getMilliseconds() 공개 메소드

Gets the milliseconds.
public getMilliseconds ( ) : int
리턴 int

getMinutes() 공개 메소드

Gets the minutes.
public getMinutes ( ) : int
리턴 int

getMonth() 공개 메소드

Gets the month.
public getMonth ( ) : int
리턴 int

getSeconds() 공개 메소드

Gets the seconds.
public getSeconds ( ) : int
리턴 int

getTime() 공개 메소드

Get the number of milliseconds since Jan 1, 1970.
public getTime ( ) : int
리턴 int

getTimezoneOffset() 공개 메소드

Gets the time difference between GMT and local time, in minutes.
public getTimezoneOffset ( ) : int
리턴 int

getUTCDate() 공개 메소드

Gets the day of the month, in universal time.
public getUTCDate ( ) : int
리턴 int

getUTCDay() 공개 메소드

Gets the day of the week, in universal time.
public getUTCDay ( ) : int
리턴 int

getUTCFullYear() 공개 메소드

Gets the year, in universal time.
public getUTCFullYear ( ) : int
리턴 int

getUTCHours() 공개 메소드

Gets the hour, in universal time.
public getUTCHours ( ) : int
리턴 int

getUTCMilliseconds() 공개 메소드

Gets the milliseconds, in universal time.
public getUTCMilliseconds ( ) : int
리턴 int

getUTCMinutes() 공개 메소드

Gets the minutes, in universal time.
public getUTCMinutes ( ) : int
리턴 int

getUTCMonth() 공개 메소드

Gets the month, in universal time.
public getUTCMonth ( ) : int
리턴 int

getUTCSeconds() 공개 메소드

Gets the seconds, in universal time.
public getUTCSeconds ( ) : int
리턴 int

now() 공개 정적인 메소드

Gets the current date and time as an offset in milliseconds since Jan 1, 1970.
public static now ( ) : int
리턴 int

parse() 공개 정적인 메소드

A string representing a date.
public static parse ( string dateString ) : int
dateString string
리턴 int

setDate() 공개 메소드

Sets the day of the month, from 1-31.
public setDate ( int date ) : void
date int The date value.
리턴 void

setFullYear() 공개 메소드

Sets the four digit year.
public setFullYear ( int year ) : void
year int The year value.
리턴 void

setHours() 공개 메소드

Sets the hour, from 0-23.
public setHours ( int hour ) : void
hour int The hour value.
리턴 void

setMilliseconds() 공개 메소드

Sets the milliseconds, from 0-999.
public setMilliseconds ( int milliseconds ) : void
milliseconds int The millisecond value.
리턴 void

setMinutes() 공개 메소드

Set the minutes, from 0-59.
public setMinutes ( int minute ) : void
minute int The minute value.
리턴 void

setMonth() 공개 메소드

Sets the month, from 0-11.
public setMonth ( int month ) : void
month int The month value.
리턴 void

setSeconds() 공개 메소드

Sets the seconds, from 0-59.
public setSeconds ( int second ) : void
second int The second value.
리턴 void

setTime() 공개 메소드

Sets the time as an offset in milliseconds from Jan 1, 1970.
public setTime ( int millisecond ) : void
millisecond int The millisecond value.
리턴 void

setUTCDate() 공개 메소드

Sets the day of the month, in universal time, from 1-31.
public setUTCDate ( int month ) : void
month int The month value.
리턴 void

setUTCFullYear() 공개 메소드

Set the four digit year, in universal time.
public setUTCFullYear ( int year ) : void
year int The year value.
리턴 void

setUTCHours() 공개 메소드

Sets the hour, in universal time, from 0-23.
public setUTCHours ( int hour ) : void
hour int The hour value.
리턴 void

setUTCMilliseconds() 공개 메소드

Sets the milliseconds, in universal time, from 0-999.
public setUTCMilliseconds ( int millisecond ) : void
millisecond int The millisecond value.
리턴 void

setUTCMinutes() 공개 메소드

Set the minutes, in universal time, from 0-59.
public setUTCMinutes ( int minute ) : void
minute int The minute value.
리턴 void

setUTCMonth() 공개 메소드

Sets the month, in universal time, from 0-11.
public setUTCMonth ( int month ) : void
month int The month value.
리턴 void

setUTCSeconds() 공개 메소드

Set the seconds, in universal time, from 0-59.
public setUTCSeconds ( int second ) : void
second int The second value.
리턴 void

toDateString() 공개 메소드

Gets the date portion of a date object as a string.
public toDateString ( ) : string
리턴 string

toLocaleDateString() 공개 메소드

Gets the date portion of a date object as a string, using locale conventions.
public toLocaleDateString ( ) : string
리턴 string

toLocaleTimeString() 공개 메소드

Gets the time portion of a date object as a string, using locale conventions.
public toLocaleTimeString ( ) : string
리턴 string

toTimeString() 공개 메소드

Gets the time portion of a date object as a string.
public toTimeString ( ) : string
리턴 string

toUTCString() 공개 메소드

Gets a date string, in universal time.
public toUTCString ( ) : string
리턴 string