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

[feature request] Date/Time variables #173

Open
EGeyskens opened this issue May 1, 2022 · 3 comments
Open

[feature request] Date/Time variables #173

EGeyskens opened this issue May 1, 2022 · 3 comments

Comments

@EGeyskens
Copy link

Variables for date & time would be useful to include an labels.
e.g. $YY for years with 2 digits, $MM for the months, ...

@c3kkos
Copy link

c3kkos commented Jul 6, 2022

### Suggestions (case-sensitive variables names)

### Time

$hh (24-format hours - two digits)
$HH (12-format hours - two digits)
$AP (ante/post meridian affix - two digits AM | PM)
$mm (minutes - two digits)
$ss (seconds - two digits)

(to be fetched and freezed at print time)

### Date

$YY (year - last two digits) $YYYY (year - full, four digits)
$MM (month - two digits)
$DD (day - two digits)

@sur5r
Copy link
Contributor

sur5r commented Jul 6, 2022

I would rather vote against reinventing the wheel here and stick to either strftime or QDateTime::toString().

@c3kkos
Copy link

c3kkos commented Jul 6, 2022

I would rather vote against reinventing the wheel here and stick to either strftime or QDateTime::toString().

Well, we need that extra flexibility... There should be no big effort to code values in those var names...

EDIT: i got your point and although it maybe be a little less straightforward, it will suit well. +1

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

3 participants