Created
April 12, 2017 14:49
-
-
Save toxn12/e189915923de3dbbd94503b4e67dfc57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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