📜  C3 比较小时 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.160000             🧑  作者: Mango

代码示例3
DateTime t1 = DateTime.Parse("2012/12/12 15:00:00.000");
DateTime t2 = DateTime.Parse("2012/12/12 15:03:00.000");

if(t1.TimeOfDay > t2.TimeOfDay) {
    //something
}
else {
    //something else
}