Commit c63576c4 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use iso 8601 format time stamp

parent 9d91ed34
......@@ -13,23 +13,23 @@ Modified-History:
2022-11-06, Bo Zhang, deleted CsstMbiDataManager
2022-11-20, Bo Zhang, added DFS APIs
"""
import _io
import datetime
import glob
import os
import re
from typing import Union
import numpy as np
from astropy.io import fits
from astropy import time
from astropy.io import fits
from astropy.table import Table
from csst_dfs_api.common.catalog import CatalogApi
from csst_dfs_api.facility.level0 import Level0DataApi
from csst_dfs_api.facility.level0prc import Level0PrcApi
from csst_dfs_api.facility.level1 import Level1DataApi
from csst_dfs_api.facility.level1prc import Level1PrcApi
from csst_dfs_api.mbi.level2 import Level2DataApi as MbiLevel2DataApi
from csst_dfs_api.sls.level2spectra import Level2SpectraApi as SlsLevel2DataApi
from csst_dfs_api.common.catalog import CatalogApi
from .logger import get_logger
from .params import CSST_PARAMS as CP
......@@ -262,7 +262,11 @@ class CsstMsDataManager:
def write_stamp(self):
if self.stamps is not None and not self.stamps == "":
with open(self.stamps, "a+") as f:
f.write(f"{time.Time.now().isot}\n")
f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n")
@staticmethod
def now():
return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
# DFS APIs
@property
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment