-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Extend Metadata 'date' to include hours/minute/seconds ? #257
Comments
The "date" field is for storing the creation date of the zettel. We can certainly add time to it. Originally I just didn't bother with time, only because of the "date IDs" that neuron had by default before we switching to random hash IDs. Timeline queries can use the full datetime, and they would finally be able to deal with zettels created on the same day. |
Actually I think we should deprecate "date", replacing it with a "created" field. This would be semantically less ambiguous. EDIT: Might as well take this opportunity to use local timezone (UTC was used only to make date IDs consistent). |
Using LocaTime automatically determined the correct TimeZone. Development experience is great now ! bin/test runnning in the terminal gives imediate feedback... love it ! |
btw, yesterday I somehow (sorry can't remember exact steps) got a version "0.6.0.5" on my system |
0.6.0.5 had a severe regression, so it had to be reverted. (I just up'ed ver to 0.6.0.6 to avoid confusion)
Awesome! As for formatting, the one in your screenshot looks good to me at first glance (assuming time is optional), but I haven't explored other formats in detail. |
"time is optional" ...do you mean that there should be a setting/option for generating time with |
I mean that both of the following should be supported in the Markdown file:
And |
Hi, just finished refactoring and everything looked fine, but I realized that my changes included possibly some logic that still should remain strictly at "day" ....which is basically everything aroung this type (and more I guess ?)
So my question is: can you point out, where the "day" should still be used ? I think it is some logic not related to the meta-tag "date" (to be renamed "created" by my PR), correct ? |
If that doesn't answer your question, perhaps you can open a draft PR and rephrase your question in the ctx of relevant code snippets? |
so maybe I should revert everything but Meta.hs, and start again from there.... |
yep! |
I will try to create the PR in the next few days (travelling at the mmt) |
I'm not so sure about this anymore. By using "created" - we hardcode the semantic of it. However, over at srid.ca I use the date to mean "published date". Often I write a note, and wait a few days/ weeks before officially "publishing" it in the blog timeline. When I do, I change the date to the published date. So it is not really a date the note was created (which IME is rarely useful), but rather that date the note was finalized (for public). |
There are probably good reasons, to just have the day as a reference. But maybe there are scenarios, where the time-of-day also is useful. For example, just for visualizing the 'timeline' of creating new zettels on one specific day (?)
Also, maybe there should be some documentation, why not modifying the date in metadata is an important concept (if it is..).
I recognize, that extending date to include the time also needs some effort for the timeline-queries, but maybe these could initially ignore time (?)
A zettelkasten user is of course free, to edit 'date' at any moment, and a user can also add dates in the body of the zettel-text (by convention)... I don't know yet what the zettelkasten philosophy is saying about these issues.
The text was updated successfully, but these errors were encountered: