Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create more live properties from date and time #144

Closed
end2endzone opened this issue Dec 31, 2023 · 1 comment
Closed

Create more live properties from date and time #144

end2endzone opened this issue Dec 31, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@end2endzone
Copy link
Owner

end2endzone commented Dec 31, 2023

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 example 2023-12-31)
  • date.short (date in yyyymmdd format. For example 20231231)
  • 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 example 23h59m59.999)
  • time.short (time in hhmmss format. For example 235959)
  • time.short2 (time in hhmmssmmm format. For example 235959999)
  • datetime.full (date and time in yyyy-mm-dd 00h00m00s.000 format. For example 2023-12-31 23h59m59.999)
  • datetime.short (date and time in yyyymmddhhmmss format. For example 20231231235959)
  • 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

@end2endzone end2endzone added the enhancement New feature or request label Dec 31, 2023
@end2endzone end2endzone added this to the 0.9.0 milestone Dec 31, 2023
@end2endzone
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant