Component:LocalDateTimeConvertor: Difference between revisions

From Resonite Wiki
mNo edit summary
add info
Line 3: Line 3:
|Name=Local Date Time Convertor
|Name=Local Date Time Convertor
}}
}}
{{stub}}
The LocalDateTimeConvertor converts an inputted time to the user's local timezone.  
The LocalDateTimeConvertor converts an inputted time to the user's local timezone.  


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:DateTime|DateTime]]>}}|TypeAdv0=true|
|Source|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:DateTime|DateTime]]>}}|TypeAdv0=true| The source field holding the date time to convert.
|LocalDateTime|{{RootFieldType|RawOutput`1|[[Type:DateTime|DateTime]]}}|TypeAdv1=true|
|LocalDateTime|{{RootFieldType|RawOutput`1|[[Type:DateTime|DateTime]]}}|TypeAdv1=true| The value of the field targeted by <code>Source</code> converted to the local user's datetime.
}}
}}


== Behavior ==
== Usage ==
{{stub}}


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 20: Line 21:
[[Category:Components:Data:Conversions{{#translation:}}|Local Date Time Convertor]]
[[Category:Components:Data:Conversions{{#translation:}}|Local Date Time Convertor]]
[[Category:Components{{#translation:}}|Local Date Time Convertor]]
[[Category:Components{{#translation:}}|Local Date Time Convertor]]
[[Category:ComponentStubs]]

Revision as of 05:40, 23 January 2025

Component image 
Local Date Time Convertor component as seen in the Scene Inspector

The LocalDateTimeConvertor converts an inputted time to the user's local timezone.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Source direct RelayRef`1<IField`1<DateTime>> The source field holding the date time to convert.
LocalDateTime raw output of DateTime The value of the field targeted by Source converted to the local user's datetime.

Usage

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also