Fixed current day of week calculation

This commit is contained in:
Simon Lübeß
2024-04-05 13:54:38 +02:00
parent 81cbff9cab
commit b42ba4a9b1
13 changed files with 1981 additions and 187 deletions

View File

@ -0,0 +1,28 @@
using System;
using UnityEngine;
namespace Utility
{
[Serializable]
public struct SimpleTime
{
[SerializeField, Range(0, 23)]
private byte _hour;
[SerializeField, Range(0, 59)]
private byte _minutes;
public int Hour
{
get => _hour;
set => _hour = (byte)value;
}
public int Minute
{
get => _minutes;
set => _minutes = (byte)value;
}
public TimeSpan ToTimeSpan() => new(_hour, _minutes, 0);
}
}