Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Timespan format in config

Open ShaneBeee opened this issue 1 year ago • 6 comments

Suggestion

I would like to suggest an option in the Skript config to format timespans similar to how there's a date format option in the config.

Why?

I CONSTANTLY see people asking in the help channels how to format a timespan, because honestly, I think everyone hates "1 minute and 35.46 seconds" I don't think anyone out there cares to see fractional seconds.

Other

No response

Agreement

  • [X] I have read the guidelines above and affirm I am following them with this suggestion.

ShaneBeee avatar Feb 11 '24 23:02 ShaneBeee

This should also be set to true by default

EquipableMC avatar Feb 11 '24 23:02 EquipableMC

This should also be set to true by default

im not sure what you're talking about, cause it wouldn't be a boolean.

see date format

date format: default
# The date format to be used when dates should be displayed.
# This can be 'default' to use Java's default date format for the system's language.
# The format is that of Java's SimpleDateFormat as defined here: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
# some examples:
#  d/M/yyyy h:mm a => 15/7/2012 8:53 PM
#  dd.MM.yyyy, HH:mm => 16.03.2013, 09:33

ShaneBeee avatar Feb 11 '24 23:02 ShaneBeee

im not sure what you're talking about, cause it wouldn't be a boolean.

I was thinking of it like this: (Example) Format Timespan: true if it was set to true, it would use whatever the date format is, but I see where you're coming from

EquipableMC avatar Feb 11 '24 23:02 EquipableMC

im not sure what you're talking about, cause it wouldn't be a boolean.

I was thinking of it like this: (Example) Format Timespan: true if it was set to true, it would use whatever the date format is, but I see where you're coming from

They should absolutely be different formats. You wouldnt even be able to use the same format for a timespan anyway.

cheeezburga avatar Feb 11 '24 23:02 cheeezburga

im not sure what you're talking about, cause it wouldn't be a boolean.

I was thinking of it like this: (Example) Format Timespan: true if it was set to true, it would use whatever the date format is, but I see where you're coming from

They should absolutely be different formats. You wouldnt even be able to use the same format for a timespan anyway.

Fair point

EquipableMC avatar Feb 11 '24 23:02 EquipableMC

I would rather see this as an expression, similar to date formatted as, so it can be dynamically changed.

TheLimeGlass avatar Feb 12 '24 04:02 TheLimeGlass