Languages

Menu
Sites
Language
I'd like to convert sensor's timeStamp value to DateTime format String.

I'd like to record the time when the sensor operates. (into SQLite)
either way, transfer the timeStamp to (paired) Android device for interpretation on Android.

I know the timeStamp returns (unsinged long long data type) MicroSec value.

How do I get date and time from this value? (Expected date time format is: "yyyy-MM-dd HH: mm: ss.SSS")

 

Thanks in advance.

--

Sensor 가 동작한 시간을 읽을 수 있는 형태로 가공하여 기록하고자 합니다. (SQLite)
혹은 timeStamp를 그대로 Android device에 전송하여 Android에서 해석할 수 도 있습니다.

가이드를 통해서 usigned long long 형태로 반환하고 MicroSecond 단위인 것은 확인하였습니다.

이를 어떻게 가공해야 날짜와 시간 값을 얻을 수 있을까요? (예: yyyy-MM-dd HH:mm:ss.SSS)

 

감사합니다.