We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have to put unix timestamp into a json document; it is a unix timestamp in milliseconds (instead of seconds since 1970):
nlohmann::json j; uint64_t dd = ((uint64_t)time(nullptr) * 1000); nlohmann::json jdd( dd ); j ["dd"] = jdd; std::stringstream stream; stream << std::setw(4) << j; std::string finalvalue = stream.str();
on my 64bit workstation I get the value serialized the right way:
{ "dd": 1540897022000 }
on a arm 32bit device I get the value serialized wrong:
{ "dd": 18446744072713095352, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have to put unix timestamp into a json document; it is a unix timestamp in milliseconds (instead of seconds since 1970):
on my 64bit workstation I get the value serialized the right way:
on a arm 32bit device I get the value serialized wrong:
The text was updated successfully, but these errors were encountered: