Collection
zero Useful+1
zero

time interval

Time terminology
The time interval is two point of time The part between, that is, what people usually call the length of time.
Chinese name
time interval
Foreign name
time interval
Content
The length of a period of time
Meaning
Distinguish between time points and periods of time

catalog

definition

Announce
edit
The time that is short to almost zero is called instant, and instant represents the moment. The time interval can be regarded as a line segment, which must have a beginning and an end.

divide

Announce
edit
The time belongs to: the beginning of the second; The end of the second; At the end of the first few seconds; At the beginning of the next few seconds.
The time interval includes: the second; Seconds; The first few seconds; In the next few seconds; A few seconds to a few seconds.
The time interval refers to a period of time between two different instants Vector diameter Law Cartesian coordinate method And natural law to study the motion of a point to a reference system, including the motion equation, trajectory, velocity and acceleration of the point.
The time interval generally corresponds to distance displacement ,, etc Process quantity

effect

Announce
edit

algorithm

The following is. net (C #) time difference Algorithm, with relevant instructions attached.
///
///Calculate the time interval between two dates///

explain

1.DateTime Value Type It represents a specific date and time from 00:00:00, January 1, 0001 to 23:59:59, December 31, 9999. Therefore, you can use the DateTime value type to describe any time within the imagined range. A DateTime value represents a specific time
2. TimeSpan value contains many properties and methods, which are used to access or process a TimeSpan value
The following list covers some of them:
Add: Add with another TimeSpan value.
Days: returns the TimeSpan value calculated by days.
Duration: Get the absolute value of TimeSpan.
Hours: returns the TimeSpan value calculated in hours
Milliseconds: used for returning millisecond Calculated TimeSpan value.
Minutes: used for returning minute Calculated TimeSpan value.
Negate: returns the current instance's Inverse number
Seconds: used for returning second Calculated TimeSpan value.
Subtract: Subtract another TimeSpan value from it.
Ticks: Returns the number of ticks of the TimeSpan value.
TotalDays: returns the number of days represented by the TimeSpan value.
TotalHours: returns the number of hours represented by the TimeSpan value.
TotalMilliseconds: Returns the number of milliseconds represented by the TimeSpan value.
TotalMinutes: Returns the number of minutes represented by the TimeSpan value.
TotalSeconds: Returns the number of seconds represented by the TimeSpan value.