diff --git a/Ccs/ccs_function_lib.py b/Ccs/ccs_function_lib.py index e0e920ed5202a7af834a0c56e3e523e554219779..d672af4ce3f8ff0ae88fe18c00e6880644e616a3 100644 --- a/Ccs/ccs_function_lib.py +++ b/Ccs/ccs_function_lib.py @@ -1312,6 +1312,17 @@ def cuc_to_utc(cuc): return utc.isoformat() +def cuc_to_date(cuc): + """ + Returns datetime object of the provided second offset from the reference epoch + + :param cuc: + :return: + """ + + return CUC_EPOCH + datetime.timedelta(seconds=cuc) + + def cuc_time_str(head, logger=logger): """ Return PUS header timestamp as string