Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Important questions about C# DateTime. at present
Important questions about C# DateTime. at present
TimeOfDay type: system. time span

An interval that indicates the elapsed time of the day since midnight.

TotalHours, totalMinutes and TotalSeconds are all converted numbers (with decimal points), while time. Hours are integers.

For example, it's 2: 19:50 now.

Then time. The hourly output is 2, and the total hours are 2.30647.

If you want to simulate clock rotation, you must use the latter.