asp.net.ph

TimeSpan Structure

System Namespace


Represents an interval in time.

TimeSpan Class Members

Collapse   Constructors

Visibility Constructor Parameters
public TimeSpan ( Int64 ticks )
public TimeSpan ( Int32 hours , Int32 minutes , Int32 seconds )
public TimeSpan ( Int32 days , Int32 hours , Int32 minutes , Int32 seconds )
public TimeSpan ( Int32 days , Int32 hours , Int32 minutes , Int32 seconds , Int32 milliseconds )

Collapse   Fields

Visibility Name Type
public static MaxValue TimeSpan
public static MinValue TimeSpan
public static const TicksPerDay Int64
public static const TicksPerHour Int64
public static const TicksPerMillisecond Int64
public static const TicksPerMinute Int64
public static const TicksPerSecond Int64
public static Zero TimeSpan

Collapse   Properties

Visibility Name Value Type Accessibility
public Days Int32 [ Get ]
public Hours Int32 [ Get ]
public Milliseconds Int32 [ Get ]
public Minutes Int32 [ Get ]
public Seconds Int32 [ Get ]
public Ticks Int64 [ Get ]
public TotalDays Double [ Get ]
public TotalHours Double [ Get ]
public TotalMilliseconds Double [ Get ]
public TotalMinutes Double [ Get ]
public TotalSeconds Double [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Add ( TimeSpan ts ) TimeSpan
public static Compare ( TimeSpan t1 , TimeSpan t2 ) Int32
public CompareTo ( TimeSpan value ) Int32
public CompareTo ( Object value ) Int32
public Duration ( ) TimeSpan
public Equals ( TimeSpan obj ) Boolean
public Equals ( Object value ) Boolean
public static Equals ( TimeSpan t1 , TimeSpan t2 ) Boolean
public static FromDays ( Double value ) TimeSpan
public static FromHours ( Double value ) TimeSpan
public static FromMilliseconds ( Double value ) TimeSpan
public static FromMinutes ( Double value ) TimeSpan
public static FromSeconds ( Double value ) TimeSpan
public static FromTicks ( Int64 value ) TimeSpan
public GetHashCode ( ) Int32
public Negate ( ) TimeSpan
public static Parse ( String input , IFormatProvider formatProvider ) TimeSpan
public static Parse ( String s ) TimeSpan
public static ParseExact ( String input , String formats , IFormatProvider formatProvider ) TimeSpan
public static ParseExact ( String input , String format , IFormatProvider formatProvider , TimeSpanStyles styles ) TimeSpan
public static ParseExact ( String input , String formats , IFormatProvider formatProvider , TimeSpanStyles styles ) TimeSpan
public static ParseExact ( String input , String format , IFormatProvider formatProvider ) TimeSpan
public Subtract ( TimeSpan ts ) TimeSpan
public ToString ( String format , IFormatProvider formatProvider ) String
public ToString ( ) String
public ToString ( String format ) String
public static TryParse ( String input , IFormatProvider formatProvider , TimeSpan& result ) Boolean
public static TryParse ( String s , TimeSpan& result ) Boolean
public static TryParseExact ( String input , String formats , IFormatProvider formatProvider , TimeSpan& result ) Boolean
public static TryParseExact ( String input , String format , IFormatProvider formatProvider , TimeSpan& result ) Boolean
public static TryParseExact ( String input , String format , IFormatProvider formatProvider , TimeSpanStyles styles , TimeSpan& result ) Boolean
public static TryParseExact ( String input , String formats , IFormatProvider formatProvider , TimeSpanStyles styles , TimeSpan& result ) Boolean

Remarks

The value of an instance of TimeSpan represents a period of time. That value is the number of "ticks" contained in the instance. A tick is the smallest unit of time that can be specified, and is equal to 100 nanoseconds. Both the specification of a number of ticks and the value of a TimeSpan can be positive or negative.

This value type implements the IComparable interface.

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph