From dc28991ad085472917a1240cf68c47e96a068271 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Wed, 5 Jul 2023 13:28:17 -0400 Subject: [PATCH] fix docstrings --- docs/index.rst | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 61c08ce..67e9900 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -128,13 +128,13 @@ any of the supported *fast* formats: For example:: - >>> from cxotime import convert_time_format - >>> convert_time_format("2022:001:00:00:00.123", "greta") - '2022001.000000123' - >>> convert_time_format(100.123, "date") - '1998:001:00:00:36.939' - >>> convert_time_format(2459580.5, "date", fmt_in="jd") - '2022:001:00:00:00.000' + >>> from cxotime import convert_time_format + >>> convert_time_format("2022:001:00:00:00.123", "greta") + '2022001.000000123' + >>> convert_time_format(100.123, "date") + '1998:001:00:00:36.939' + >>> convert_time_format(2459580.5, "date", fmt_in="jd") + '2022:001:00:00:00.000' Note that this function can be used to convert between any of the supported |CxoTime| formats, but it will internally use a |CxoTime| object so the performance will not be @@ -189,9 +189,8 @@ command line script or as class method :meth:`~cxotime.CxoTime.print_conversions iso 2023-01-10 18:41:02.603 unix 1673376062.603 -:: +or in python:: - $ python >>> from cxotime import CxoTime >>> tm = CxoTime("2022-01-02 12:00:00.000") >>> tm.print_conversions()