Skip to content

Commit

Permalink
datetime format in table
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisNe committed Feb 8, 2025
1 parent 46241dd commit ab5958f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuztf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main(
m = nu.observations.obsjd == jd
bands = nu.observations.band[m].unique()
exp_times = nu.observations.exposure_time[m].unique()
time = Time(jd, format="jd").ymdhms
time = Time(jd, format="jd").to_datetime().strftime("%Y-%m-%d %H:%M:%S")
table.add_row(str(time), str(bands), str(exp_times))

console.print(table)
Expand Down

0 comments on commit ab5958f

Please sign in to comment.