I'd like to be able to create a constant with a particular format with a useful name.
TIME_FMT_MYSQL = ...; TIME_FMT_DISPLAY_INTERNATIONAL = ...; TIME_FMT_CLOCK(12|24)H = ...
This is not possible with the current API design.
Alternatives:
I could declare datetime_fmt(DateTime, MyOwnEnum): string; in my own code. Internally switch over the enum and pass the string literal format string.
Clunky, but it works.
I'd like to be able to create a constant with a particular format with a useful name.
TIME_FMT_MYSQL = ...; TIME_FMT_DISPLAY_INTERNATIONAL = ...; TIME_FMT_CLOCK(12|24)H = ...
This is not possible with the current API design.Alternatives: I could declare
datetime_fmt(DateTime, MyOwnEnum): string;
in my own code. Internally switch over the enum and pass the string literal format string. Clunky, but it works.