You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Humanizer formats the <see cref="Date"/> relative to the local computer time.
95
+
/// Therefore, replacing a <see cref="HumanisedDate"/> instance with another instance of the class with the same <see cref="Date"/>
96
+
/// should have the effect of replacing and re-formatting the text.
97
+
/// Including <see cref="Date"/> in equality members would stop this from happening, as <see cref="SpriteText.Text"/>
98
+
/// has equality-based early guards to prevent redundant text replaces.
99
+
/// Thus, instances of these class just compare <see langword="false"/> to any <see cref="ILocalisableStringData"/> to ensure re-formatting happens correctly.
100
+
/// There are "technically" more "correct" ways to do this (like also including the current time into equality checks),
101
+
/// but they are simultaneously functionally equivalent to this and overly convoluted.
102
+
/// This is a private hack-job of a wrapper around humanizer anyway.
0 commit comments