Skript

Skript

743k Downloads

Timespan format in config

ShaneBeee opened this issue ยท 6 comments

commented

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

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

This should also be set to true by default

commented

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
commented

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

commented

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.

commented

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

commented

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