Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formatting options to format configuration #90

Open
taalas opened this issue Aug 19, 2020 · 0 comments
Open

Add formatting options to format configuration #90

taalas opened this issue Aug 19, 2020 · 0 comments

Comments

@taalas
Copy link

taalas commented Aug 19, 2020

It seems that only raw values from the current version configuration sets can be output using the format string. When outputting times with single digit minutes this leads to timestamps that look like: "8:8" (8 minutes after eight).

It would be great if there were some options for simple variable transformations (like padding a variable with zeroes in this case). e.g.

{$timestamp.hour}:{$timestamp.minute|pl:0:2}

for padding from left to size 2 with zeroes etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant