using Tessera.Text; namespace Tessera.UnitTests.Text { public static class TimeNotationSamples { public static TimeNotation Notation(string clockSeparator = ":", string am = " AM", string pm = " PM", bool markerFirst = false, bool prefers24Hours = false, bool padsHour = false, bool showsMarker = true, string day = "d", string hour = "h", string minute = "m", string second = "s", string unitSeparator = " ") { return TimeNotation.FromParts(clockSeparator, am, pm, markerFirst, prefers24Hours, padsHour, showsMarker, day, hour, minute, second, unitSeparator); } public static TimeNotation OfPatterns(string pattern24 = "H:mm", string pattern24WithSeconds = "H:mm:ss", string pattern12 = "h:mm a", string pattern12WithSeconds = "h:mm:ss a", string am = "AM", string pm = "PM", string day = "{0}d", string hour = "{0}h", string minute = "{0}m", string second = "{0}s") { return new TimeNotation(pattern24, pattern24WithSeconds, pattern12, pattern12WithSeconds, am, pm, prefers24Hours: false, showsMarker: true, day, hour, minute, second, unitSeparator: " "); } } }