Conversion of UTC to OBT(on board time)

166 views
Skip to first unread message

Nishant Kumar

unread,
Oct 29, 2021, 2:46:31 AM10/29/21
to yamcs
HI All,
I wanted to know ,is there any way to conver UTC to OBT. Currently i am using the time correlation service to convert OBT to UTC and get the generation time , similarly can  Yamcs convert the UTC to OBT?
Thanks,
Nishant Kumar

Nicolae Mihalache

unread,
Oct 29, 2021, 3:23:47 AM10/29/21
to ya...@googlegroups.com
You want to put the OBT inside a command argument? 
I don't think there is an easy way to do that right now.


--
You received this message because you are subscribed to the Google Groups "yamcs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yamcs+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/yamcs/de109489-9019-4526-84e1-5effe8254961n%40googlegroups.com.

Nishant Kumar

unread,
Oct 29, 2021, 5:06:07 AM10/29/21
to yamcs
yes thats right i want to put obt in a command argument.
i have added a time parameter to the command in which user can put the time , and if i am able to convert that time to OBT in postprocessor it will work.
Any idea how should i approach this?

Nishant Kumar

unread,
Oct 29, 2021, 6:34:43 AM10/29/21
to yamcs
Hi Nicolae,
I am facing one problem while setting the time in a command argument from yamcs web..I am putting the time in this format "yyyy-mm-dd HH:MM:SS"
but i am getting this error "Cannot assign value to absolute_time: Cannot parse '2021-10-29 11:11:00' with the pattern '(\d+)\-(\d{2})\-(\d{2})T(\d{2}):(\d{2}):(\d{2})(\.(\d{3})\d{0,9})?Z?" 
I am not able to put the time in the format of thi regex .can you tell me what should be the format?
Reply all
Reply to author
Forward
0 new messages