Create more live properties from date and time
end2endzone opened this issue · comments
Is your feature request related to a problem? Please describe.
There is no properties for referencing current date and time.
Describe the solution you'd like
Create the following live properties :
- date.year (year 4 digits number)
- date.month (month 2 digits number from 01 to 12)
- date.day (day 2 digits number from 01 to 31)
- date.full (date in
yyyy-mm-dd
format. For example2023-12-31
) - date.short (date in
yyyymmdd
format. For example20231231
) - time.hours (hours 2 digits number from 00 to 23)
- time.minutes (minutes 2 digits number from 00 to 59)
- time.seconds (seconds 2 digits number from 00 to 59)
time.milliseconds (milliseconds 3 digits number from 000 to 999)- time.full (time in
00h00m00s.000
format. For example23h59m59.999
) - time.short (time in
hhmmss
format. For example235959
) time.short2 (time inhhmmssmmm
format. For example235959999
)- datetime.full (date and time in
yyyy-mm-dd 00h00m00s.000
format. For example2023-12-31 23h59m59.999
) - datetime.short (date and time in
yyyymmddhhmmss
format. For example20231231235959
) - datetime.custom (date and time according to the value of property
datetime.format
.)
Describe alternatives you've considered
We could generate time properties in DefaultSettings but that would be way too complicated.
Additional context
N/A
Milliseconds resolution is not really required. I don't easily think of a use case that would require multiple successive calls to this property. Therefore second resolution is probably fine. If we ever need that much precision, I might be creating a time.milliseconds
property or something like that.