Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TimeToTicks() [1/2]

static ulong System.DateTime.TimeToTicks ( int hour,
int minute,
int second )
inlinestaticprivate

Definition at line 604 of file DateTime.cs.

605 {
606 if ((uint)hour >= 24u || (uint)minute >= 60u || (uint)second >= 60u)
607 {
608 ThrowHelper.ThrowArgumentOutOfRange_BadHourMinuteSecond();
609 }
610 int num = hour * 3600 + minute * 60 + second;
611 return (ulong)(uint)num * 10000000uL;
612 }

References System.Runtime.Serialization.Dictionary, and System.ThrowHelper.ThrowArgumentOutOfRange_BadHourMinuteSecond().

Referenced by System.DateTime.DateTime(), System.DateTime.DateTime(), System.DateTime.DateTime(), System.DateTime.DateTime(), System.DateTime.TimeToTicks(), and System.DateTime.TryCreate().