mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-18 01:04:03 -05:00
Add AIS last position timestamp to details view.
This commit is contained in:
parent
6ead63d02d
commit
93aea59847
3 changed files with 11 additions and 0 deletions
|
|
@ -112,6 +112,15 @@ std::string to_string_hex(const uint32_t n, const int32_t l) {
|
|||
return p;
|
||||
}
|
||||
|
||||
std::string to_string_datetime(const rtc::RTC& value) {
|
||||
return to_string_dec_uint(value.year(), 4, '0') + "/" +
|
||||
to_string_dec_uint(value.month(), 2, '0') + "/" +
|
||||
to_string_dec_uint(value.day(), 2, '0') + " " +
|
||||
to_string_dec_uint(value.hour(), 2, '0') + ":" +
|
||||
to_string_dec_uint(value.minute(), 2, '0') + ":" +
|
||||
to_string_dec_uint(value.second(), 2, '0');
|
||||
}
|
||||
|
||||
std::string to_string_timestamp(const rtc::RTC& value) {
|
||||
return to_string_dec_uint(value.year(), 4, '0') +
|
||||
to_string_dec_uint(value.month(), 2, '0') +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue