Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier way to enter historical dates #107

Closed
JohnLines opened this issue Oct 7, 2020 · 1 comment
Closed

Easier way to enter historical dates #107

JohnLines opened this issue Oct 7, 2020 · 1 comment

Comments

@JohnLines
Copy link

If using Viking to work with a historical voyage - for example Eric the Red's voyage to Greenland, it would be useful to have a way to enter dates in Waypoints which are a long way from the current date. Mostly a simple way to directly enter the Year would be useful. I note that the KML specification allows for Month, Day and time to be unspecified anyway

<TimeStamp>
  <when>1997</when>
</TimeStamp>

@rnorris
Copy link
Collaborator

rnorris commented Oct 9, 2020

I think adding a text entry line to the date/time dialog, which would try to interpet the free form text as https://en.wikipedia.org/wiki/ISO_8601 (as there are low level functions for that conversion) could be done.

This should allow entering just a plain Year value and getting something usable (presumably going to the 1st day of that year). Internally it will still be a full timestamp - year/month/day/hh:mm:ss.ss.

rnorris added a commit to rnorris/viking that referenced this issue Nov 14, 2020
Support some kinds of ISO8601 as handled by lower level glib functions:
g_date_set_parse() and g_date_time_new_from_iso8601().

Also handle simple single year (YYYY) values.

A successful understanding of the text value will supersede values in the other widgets.
@rnorris rnorris closed this as completed Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants