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

preprinted datetime dropping fractional information #23

Closed
jtmoon79 opened this issue Aug 14, 2022 · 0 comments
Closed

preprinted datetime dropping fractional information #23

jtmoon79 opened this issue Aug 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working datetime format support for parsing some datetime pattern format

Comments

@jtmoon79
Copy link
Owner

jtmoon79 commented Aug 14, 2022

Problem

Preprinted datetimes (-l, -u) are not setting fractional. (it's always zero).

For example, from an Ubuntu host

$ ./target/release/s4 -l -n -w -a 20220813T120000 -b 20220813T200000 /var/log/
...
ubuntu-advantage-timer.log:20220813T180826.000000 +0000:2022-08-13 18:08:26,175 - timer.py:(46) [DEBUG]: Executed job: update_messaging
...

In the terminal, the datetime is correctly underlined, including the fractional, 2022-08-13 18:08:26,175 (notice 175).
But the preprinted datetime has fractional value 0, 20220813T180826.000000 +0000,

Solution

Set the fractional value in the preprinted datetime.

@jtmoon79 jtmoon79 added the bug Something isn't working label Aug 14, 2022
jtmoon79 added a commit that referenced this issue Sep 20, 2022
@jtmoon79 jtmoon79 self-assigned this Sep 20, 2022
@jtmoon79 jtmoon79 added the datetime format support for parsing some datetime pattern format label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working datetime format support for parsing some datetime pattern format
Projects
None yet
Development

No branches or pull requests

1 participant