Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created Jul 11, 2022
Embed
What would you like to do?
// A couple constructors to choose from.
public TimeOnly(int hour, int minute)
public TimeOnly(int hour, int minute, int second)
public TimeOnly(int hour, int minute, int second, int millisecond)
TimeOnly nineInTheMorning = new TimeOnly(9, 0);
TimeOnly currentUtcTime = TimeOnly.FromDateTime(DateTime.UtcNow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment