Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gist zum C# Tutorial Deutsch - TimeSpan | .NET Klassen
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatentypTimeSpan
{
class Program
{
static void Main(string[] args)
{
// Erstellen von TimeSpan Objekten
// 1 - Konstruktor
TimeSpan zeitSeitTagesbeginn = new TimeSpan(17, 28, 30);
// 2 - statische From-Methoden
TimeSpan zeitSeitLetztemVideo = TimeSpan.FromDays(1);
Console.WriteLine(zeitSeitTagesbeginn);
Console.WriteLine(zeitSeitLetztemVideo);
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment