gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[task #15555] Account for timezone in date strings in --datetosec


From: Mohammad Akhlaghi
Subject: [task #15555] Account for timezone in date strings in --datetosec
Date: Sat, 22 Feb 2020 20:31:25 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Update of task #15555 (project gnuastro):

        Percent Complete:                      0% => 10%                    

    _______________________________________________________

Follow-up Comment #1:

Part of the job has been implemented and pushed
<http://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=8361c452b> to the
main repository. 

The implemented part is the `Z' character at the end of the date-time string.
According to the w3.org standard, when its present in effect, it just means
that the timezone is zero (or the time is in UTC). So this part was pretty
easy to implement. 

The second part is also easy (to parse the timezone `+hh:mm' or `-hh:mm' and
add it to the `tp->tm_gmtoff' (see the GNU C library for more on this). But
the complication is that the FITS standard also allows sub-second times (with
a decimal point in the seconds). So we also have to account for that.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?15555>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]