C# Class System.Data.SqlTypes.SqlDateTime

显示文件 Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
MaxValue SqlDateTime
MinValue SqlDateTime
Null SqlDateTime
SQLTicksPerHour int
SQLTicksPerMinute int
SQLTicksPerSecond int

Public Methods

Method Description
Add ( SqlDateTime x, System.TimeSpan t ) : SqlDateTime
CompareTo ( SqlDateTime value ) : int
CompareTo ( object value ) : int
Equals ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
Equals ( object value ) : bool
GetHashCode ( ) : int
GetXsdType ( XmlSchemaSet schemaSet ) : XmlQualifiedName
GreaterThan ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
GreaterThanOrEqual ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
LessThan ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
LessThanOrEqual ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
NotEquals ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
Parse ( string s ) : SqlDateTime
SqlDateTime ( System.DateTime value ) : System.Data.Common
SqlDateTime ( int dayTicks, int timeTicks ) : System.Data.Common
SqlDateTime ( int year, int month, int day ) : System.Data.Common
SqlDateTime ( int year, int month, int day, int hour, int minute, int second ) : System.Data.Common
SqlDateTime ( int year, int month, int day, int hour, int minute, int second, double millisecond ) : System.Data.Common
SqlDateTime ( int year, int month, int day, int hour, int minute, int second, int bilisecond ) : System.Data.Common
Subtract ( SqlDateTime x, System.TimeSpan t ) : SqlDateTime
ToSqlString ( ) : SqlString
ToString ( ) : string
operator ( ) : SqlBoolean
operator ( ) : SqlDateTime

Private Methods

Method Description
FromDateTime ( System.DateTime value ) : SqlDateTime
FromTimeSpan ( System.TimeSpan value ) : SqlDateTime
IXmlSerializable ( ) : XmlSchema
IXmlSerializable ( XmlReader reader ) : void
IXmlSerializable ( XmlWriter writer ) : void
IsLeapYear ( int year ) : bool
SqlDateTime ( bool fNull ) : System.Data.Common
SqlDateTime ( double dblVal ) : System.Data.Common
ToDateTime ( SqlDateTime value ) : System.DateTime
ToDateTime ( int daypart, int timepart ) : System.DateTime
ToTimeSpan ( SqlDateTime value ) : System.TimeSpan

Method Details

Add() public static method

public static Add ( SqlDateTime x, System.TimeSpan t ) : SqlDateTime
x SqlDateTime
t System.TimeSpan
return SqlDateTime

CompareTo() public method

public CompareTo ( SqlDateTime value ) : int
value SqlDateTime
return int

CompareTo() public method

public CompareTo ( object value ) : int
value object
return int

Equals() public static method

public static Equals ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

Equals() public method

public Equals ( object value ) : bool
value object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetXsdType() public static method

public static GetXsdType ( XmlSchemaSet schemaSet ) : XmlQualifiedName
schemaSet XmlSchemaSet
return XmlQualifiedName

GreaterThan() public static method

public static GreaterThan ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

GreaterThanOrEqual() public static method

public static GreaterThanOrEqual ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

LessThan() public static method

public static LessThan ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

LessThanOrEqual() public static method

public static LessThanOrEqual ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

NotEquals() public static method

public static NotEquals ( SqlDateTime x, SqlDateTime y ) : SqlBoolean
x SqlDateTime
y SqlDateTime
return SqlBoolean

Parse() public static method

public static Parse ( string s ) : SqlDateTime
s string
return SqlDateTime

SqlDateTime() public method

public SqlDateTime ( System.DateTime value ) : System.Data.Common
value System.DateTime
return System.Data.Common

SqlDateTime() public method

public SqlDateTime ( int dayTicks, int timeTicks ) : System.Data.Common
dayTicks int
timeTicks int
return System.Data.Common

SqlDateTime() public method

public SqlDateTime ( int year, int month, int day ) : System.Data.Common
year int
month int
day int
return System.Data.Common

SqlDateTime() public method

public SqlDateTime ( int year, int month, int day, int hour, int minute, int second ) : System.Data.Common
year int
month int
day int
hour int
minute int
second int
return System.Data.Common

SqlDateTime() public method

public SqlDateTime ( int year, int month, int day, int hour, int minute, int second, double millisecond ) : System.Data.Common
year int
month int
day int
hour int
minute int
second int
millisecond double
return System.Data.Common

SqlDateTime() public method

public SqlDateTime ( int year, int month, int day, int hour, int minute, int second, int bilisecond ) : System.Data.Common
year int
month int
day int
hour int
minute int
second int
bilisecond int
return System.Data.Common

Subtract() public static method

public static Subtract ( SqlDateTime x, System.TimeSpan t ) : SqlDateTime
x SqlDateTime
t System.TimeSpan
return SqlDateTime

ToSqlString() public method

public ToSqlString ( ) : SqlString
return SqlString

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : SqlBoolean
return SqlBoolean

operator() public static method

public static operator ( ) : SqlDateTime
return SqlDateTime

Property Details

MaxValue public_oe static_oe property

public static SqlDateTime,System.Data.SqlTypes MaxValue
return SqlDateTime

MinValue public_oe static_oe property

public static SqlDateTime,System.Data.SqlTypes MinValue
return SqlDateTime

Null public_oe static_oe property

public static SqlDateTime,System.Data.SqlTypes Null
return SqlDateTime

SQLTicksPerHour public_oe static_oe property

public static int SQLTicksPerHour
return int

SQLTicksPerMinute public_oe static_oe property

public static int SQLTicksPerMinute
return int

SQLTicksPerSecond public_oe static_oe property

public static int SQLTicksPerSecond
return int