I know this has being discussed previously but I could not see a clear answer.On My Wikis created and Modified dates reflect my local PC or Browser settings.TiddlyWiki.com says To avoid problems arising from differences of time zone, TiddlyWiki always uses UTC.
If this is so where do we set that I am in +11 zone when displaying Dates?
However I useDate Picker Version 0.5.2 $:/plugins/kixam/datepicker
andMoment.JS version 2.18.1 $:/plugins/kixam/moment
and especially when I use <$edit-date>When its 3pm here the time stamp is Tomorrow at 2am or +11 hoursSo these tools are using my computers time as UTC and Adding 11 hoursThe Are not using UTC and showing time with +11
I also wonder why{{!!created}} gives me a formatted date Fri Mar 16 2018 22:26:55 GMT+1100 (AUS Eastern Daylight Time)
The Info panel shows the GMT version of the time as -11 from my local expected.
I had assumed sticking compliet date values in a field made it a date field.
Is there a guide to handing custom date fields in tiddlywiki somewhere?
I am 90% the way through building a Tiddler Disposition tool that uses a set of date fields to make the life cycle of different tiddlers easy.I am not sure how to proceed in light of the discovery that I am not sure how to get fields treated as date fields, and to get edit-date fields to be stored as UTC and manage the time part of this select date.
Without "special" field modules registered at startup we should have an easy to use date field mechanism,
after all we would expect this to be a common requirement for tiddlers, such as due, review or expiry dates etc..
...
I hope I did not cause offence.
...
Possibly my greatest fear is not having the ear of those who influence the core, and the time to speak in my less than trained words about my ideas, to such people (perhaps like yourself).
You may have seen my discussions in relation to making fields first class citizens, like tags are, when a Tag can also be a tiddler, I am already allowing fields to be represented by a tiddler, or field-tiddlers to be created that support many of the features your linked to in "Typed Fields" and "lookup fields" do. I expect these to be complementary, but personally I am not so sure typed fields are essential. I would be concerned if fields became stricter in definition, since their openness is already a powerful feature I am exploiting.
<<TagLikeList fieldName label showEmpty wikify>>
<<EditTagLikeList fieldName label wikify>>Of course I am only refering to the tag pill popup to link to the tiddler of the twg.
I am intregued by the wikify option and Will explore that.
Thanks
Tony
Folks,I know this has being discussed previously but I could not see a clear answer.On My Wikis created and Modified dates reflect my local PC or Browser settings.TiddlyWiki.com says To avoid problems arising from differences of time zone, TiddlyWiki always uses UTC.If this is so where do we set that I am in +11 zone when displaying Dates?However I useDate Picker Version 0.5.2 $:/plugins/kixam/datepicker
andMoment.JS version 2.18.1 $:/plugins/kixam/moment
This thread is titled utc which of course is time rather than dates, this difference fades over time and you are only concerned with the date.
Remember even if tw5 does not "support" a given date you can store anything in a field. I would expect many have needed conversions in the past and expect there are precalculated calendar conversions available in tables if not conversion ranges.
My thought is looking for conversion algorithiums rather than reference tables is posibily unnecessarily complex. Partial algorithium could be used to reduce the size of any table.
I say this based on the fact most calendars are historical not mathematical often need corrections to map to the heavens. I am sure archeologists, historians and anthropologists have addressed this already.
Regards
Tony
Is there any known algorithm between the Gregorian and the other calendars ?
I did some searching and reading, and it kind of seemed like even experts hadn't worked it out. But maybe I was running down the wrong rabbit hole?
The formulae I found came with the caveat that they might be a day or two off!Recall that TW's internal dates are only good for about 200 years back.One workaround might be to use a data dictionary with all the dates for some desired period of time pre-translated between systems.
Is there any known algorithm between the Gregorian and the other calendars ?I did some searching and reading, and it kind of seemed like even experts hadn't worked it out.
Hi Mark,
On Monday, April 13, 2020 at 2:25:46 AM UTC+4:30, Mark S. wrote:Is there any known algorithm between the Gregorian and the other calendars ?Yes, there are!I did some searching and reading, and it kind of seemed like even experts hadn't worked it out. But maybe I was running down the wrong rabbit hole?As an example in the case I am looking there is very good JS code, please have a look here
On Monday, April 13, 2020 at 7:32:06 AM UTC+2, Mohammad wrote:Hi Mark,
On Monday, April 13, 2020 at 2:25:46 AM UTC+4:30, Mark S. wrote:Is there any known algorithm between the Gregorian and the other calendars ?Yes, there are!I did some searching and reading, and it kind of seemed like even experts hadn't worked it out. But maybe I was running down the wrong rabbit hole?As an example in the case I am looking there is very good JS code, please have a look heremoment.js probably isn't the best choice. It's big and slow.