More formatting options
This commit adds format and formatDateTime to Starscript. Yes, I know one of the selling points of Starscript is to be faster than String.format, but sometimes you do need more formatting options.
format(fmt, ...args)
Adds arbitrary formatting by calling String.format. This can be considered as a fix to [#7] too.
formatDateTime(fmt)
Calls SimpleDateFormat because currently Starscript date and time don't allow the user to choose a custom format.
Hi, would you like to add a timezone variable to formatDateTime(fmt)?
Hi, would you like to add a timezone variable to
formatDateTime(fmt)?
Java SimpleDateFormat already supports displaying of the timezone. Do you mean adding the option to switch to another timezone?
Yeah, I mean the option to switch the timezone.
Yeah, I mean the option to switch the timezone.
I added that as an optional argument to formatDateTime. Don't know if this PR is getting merged though.
Fixed. Any more suggestions?