on 2023 Jul 14 1:58 AM
When I try to get the timestamp, I find that the time error is quite large,
Is there any good way to share?
Thanks!
Request clarification before answering.
Hi 致弘,
How and where do you get the timestamp?
Kindly provide detailed steps to reproduce the issue.
Alan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alan,
I get the timestamp in SDK,the code is as follows:
var ztime = (Context.GetCurrentSystemTimeStamp()).RoundToString(0);
var epochstart = "19700101000000";
var epochdate = GlobalDateTime.ParseFromString(epochstart).AddDuration(ABSL:Duration.ParseFromString("PT8H")).Delta(GlobalDateTime.ParseFromString(ztime)).ConvertToMinutes();
var ztimeStamp = epochdate * 60000;
My time zone is UTC+8,
If you have any suggestions or ideas, please let me know.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.