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

LDEV-5173 - add support for epoch and epochms for ParseDateTime #2453

Open
wants to merge 2 commits into
base: 6.2
Choose a base branch
from

Conversation

cfmitrah
Copy link
Member

@zspitzer zspitzer changed the title Added a fix for the ticket LDEV-5173. LDEV-5173 - add support for epoch and epochms for ParseDateTime Dec 13, 2024
@zspitzer
Copy link
Member

test cases #2454

String seconds = oDate.toString();
long timeSeconds = Long.parseLong(seconds);
long milliseconds = timeSeconds*1000;
Instant instant = Instant.ofEpochMilli(milliseconds);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could avoid creating the longs, do them in ofEpochMilli(...)

@zspitzer
Copy link
Member

zspitzer commented Dec 13, 2024

@cfmitrah if you rebase, the test is already merged, you can enable it

also the .fld needs updating with the two new masks

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

Successfully merging this pull request may close these issues.

2 participants