Type:DateTime: Difference between revisions

From Resonite Wiki
imported>ProbablePrime
m ProbablePrime moved page Category:Types:DateTime to Types:DateTime
 
Added much more information on the DateTime data type
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
|-
| Color
| Type
|-
| style="background-color:{{DateTime-color}}" |
| DateTime
|}
DateTime represents a defined Date and Time which could be in the past, present or future.
DateTime represents a defined Date and Time which could be in the past, present or future.


[[Category:Types]]
The structure of this datatype is internally considered a Struct, and as such has some unusual properties
 
[[https://learn.microsoft.com/en-us/dotnet/api/system.datetime Microsoft's Documentation]] on DateTime has more on this data type.
 
The data type does not directly convert to Milliseconds without the conversion algorithm. DateTime even has data about time zone and daylight savings time from the time zone it was recorded in within its value, as well as versioning. As such, working directly with the [[Type:ULong| ULong]] that can sometimes be extracted from it is not recommended.
 
[[Category:Type]]

Latest revision as of 23:12, 14 January 2024

DateTime represents a defined Date and Time which could be in the past, present or future.

The structure of this datatype is internally considered a Struct, and as such has some unusual properties

[Microsoft's Documentation] on DateTime has more on this data type.

The data type does not directly convert to Milliseconds without the conversion algorithm. DateTime even has data about time zone and daylight savings time from the time zone it was recorded in within its value, as well as versioning. As such, working directly with the ULong that can sometimes be extracted from it is not recommended.