Share via


Date Time

Glossary Item Box

Microsoft Robotics Developer Studio Send feedback on this topic

Date Time

Date Time

Date Time - Icon

The Date Time service provides a set of requests that support handling of DateTime and TimeSpan (.Net data types).

DateTime represents dates and times with values ranging from 12:00:00 midnight, January 1, 0001 Anno Domini (Common Era) through 11:59:59 P.M., December 31, 9999 A.D. (C.E.).

A TimeSpan represents a time interval, or duration of time, measured as a positive or negative number of days, hours, minutes, seconds, and fractions of a second (milliseconds). The largest unit of time used to measure duration is a day.

This service enables you to create DateTime and TimeSpan data types and to add and subtract them. You can subtract one DateTime from another to obtain the time interval between them. Or you could add a positive TimeSpan to the current DateTime to calculate a future date.

Request Description AddTimeSpanToDateTime Returns the result of adding a TimeSpan to a DateTime. AddTimeSpanToTimeSpan Returns the result of adding a TimeSpan to a TimeSpan. CreateDateTime Creates a DateTime. CreateTimeSpan Creates a TimeSpan. Get Returns the current state of the service. SubtractDateTimeFromDateTime Returns the result of subtracting a DateTime from a DateTime, which is the TimeSpan between. SubtractDateTimeFromTimeSpan Returns the result of subtracting a DateTime from a TimeSpan, which is a TimeSpan. SubtractTimeSpanFromTimeSpan Returns the result of subtracting a TimeSpan from a TimeSpan.

 

 

© 2012 Microsoft Corporation. All Rights Reserved.