C# TimeSpan Zero
Description
TimeSpan Zero
represents the zero TimeSpan value. This
field is read-only.
Syntax
TimeSpan.Zero
has the following syntax.
public static readonly TimeSpan Zero
Example
The following example references and displays the value of the Zero field.
// w w w .ja v a 2s. co m
using System;
class TimeSpanFieldsDemo
{
static void Main( )
{
Console.WriteLine( TimeSpan.Zero );
}
}
The code above generates the following result.