diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-19 02:21:16 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-19 02:21:16 +1000 |
| commit | 79d383f6f48df0078e6ba13239f9c4c94fbc9ea6 (patch) | |
| tree | 4450904ebdc5083a69f544e49478281ebbc2429e /Util.cs | |
| parent | e556de927015acd8d9934e68707a95901acfad8e (diff) | |
v0.19av0.19a
Diffstat (limited to 'Util.cs')
| -rw-r--r-- | Util.cs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,11 @@ public static class Extensions { return string.Format("{0:0}h{0:0}m", t.TotalHours, t.Minutes); return string.Format("{0:0.00}d", t.TotalDays); } + + public static int GetRoundedHashCode(this DateTime dt) { + var t = dt.ToUniversalTime(); + return HashCode.Combine(t.Year, t.Month, t.Date, t.Hour, t.Minute, t.Second); + } } public class LimitedConcurrencyTaskScheduler : TaskScheduler { |
