TimeSpan.ConvertToCalendarDate(String) Method

Top 

Description

Returns a formatted string representing an epoch in time using the calendar format specified in the 'formatString' argument. The calling TimeSpan is assumed to be in TAI referenced to the MJD GSFC reference epoch and the returned String is in UTC.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.ConvertToCalendarDate(

String formatString)

 

 

Arguments

formatString


Description:

Specifies the format of the output String. The format specification can include the date and time formats shown in the in the "Parsing Dates and Times" reference in the Help File, including month, day, year, hours, minutes, and seconds. The user can also include custom characters by surrounding them with **asterisks**. If a format string is not specified, the format "Mmm DD YYYY hh:mm:ss.fs" will be used.

 

 

 

Return Value

Type:

string

 

 

A calendar string.

 

Syntax

myString1 = myTimeSpan1.ConvertToCalendarDate(myString2);

 

 

See also

TimeSpan Object

TimeSpan.ConvertToCalendarDate

TimeSpans Guide

Parsing Dates and Times