Skip to content

Instantly share code, notes, and snippets.

@toxn12
Created April 12, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toxn12/e189915923de3dbbd94503b4e67dfc57 to your computer and use it in GitHub Desktop.
Save toxn12/e189915923de3dbbd94503b4e67dfc57 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace DateTimeSample01
{
public class Program
{
public static void Main(string[] args)
{
DateTime hoge = new DateTime(2017, 4, 10);
TimeSpan piyo = new TimeSpan(26, 0, 0);
hoge = hoge.Add(piyo);
// 2017/04/11 02:00:00
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment