You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: