[tw5] Re: Date format for the Timelines plugin

2020-11-29 Thread TW Tones
Jutta, I have never had to deal with such old dates, but if you primarily just want to assign years, and no need to check or test months of the year, days of the month then rather than use a date field perhaps just have a year field? Basically treat BC as another number in a field. In reality t

[tw5] Re: Date format for the Timelines plugin

2020-11-28 Thread 'MissyLaMotte' via TiddlyWiki
Hello Eskha, yes, thank you, indeed, the minus works for me, too. It is a bit confusing because it takes the place of the first year digit, so the earliest year you can do is -999, but that's fine for my purpose. But I still cannot get the first century AD to work. Any year with two leading zer

[tw5] Re: Date format for the Timelines plugin

2020-11-28 Thread Eskha
Hello Jutta, What is working for me: I use "Y" format for date and a "-" in front of the date (eg -200 for 200 BC). Best regards, Eskha Le samedi 28 novembre 2020 à 20:35:53 UTC+1, jutta@googlemail.com a écrit : > Hi, > > I am trying to get the Timelines plugin to work for my project. T

[tw5] Re: Date format without $view ?

2020-05-21 Thread TonyM
Mat,/Tony K I found when it breaks {{{ [[$date$]split[]] }}} In a macro with replaceable parameters, no split occurs. Tony, This issue with split is stopping me use the following on a variable (in a macro), rather than a fieldname to extract time of day 0hh:0mm without the view widget. <$se

[tw5] Re: Date format without $view ?

2020-05-21 Thread TonyM
Mat, Thanks, I thought that was so, yet it was just not working using this format below as well, but that now works as well {{{ [[aabbcc]split[]] }}} Clearly a glitch in the universe. Your stating the fact has put the universe back in place, thanks Tony On Thursday, May 21, 2020 at 9:16:18 P

[tw5] Re: Date format without $view ?

2020-05-21 Thread Mat
TonyM wrote: > > >- I have one possible solution which needs me to spit the longer >timestamp into separate characters but the split[] operator does not do >this. > > Sure it does {{{ aabbcc +[split[]] }}} <:-) -- You received this message because you are subscribed to the Google

[tw5] Re: Date format without $view ?

2020-05-20 Thread TonyM
Tony K I imagine the reason you want to do it without the view widget is because it does not accept a variable as an input?, only tiddlers and fields. Something I have tried to get fixed because its out only built in date converter. - I have one possible solution which needs me to spit the

[tw5] Re: Date format without $view ?

2020-05-20 Thread Tony K
Hello Tony Thanks a lot for replying, and I would be highly interested to learn how to do it in wikitext and widgets I tried to explain what I am trying to do in my OP but I will try again. Issue is it sounds so clear in my head that I am getting troubles explaining it. Below are 2 entries in

[tw5] Re: Date format without $view ?

2020-05-20 Thread TonyM
Tony K, Fine run with your solution with a JS macro since this is clearly your strength,However I am confident with a little more detail to your request, for clarity I can make a pure wikit text and widget solutions for you. On the other hand using the title as a time stamp ie the primary key t

[tw5] Re: Date format without $view ?

2020-05-20 Thread Tony K
Solved, I created a JS macro for it thanks On Wednesday, May 20, 2020 at 7:54:48 PM UTC+3, Tony K wrote: > > is it possible to manipulate a timestamp without the $view? > > I have timestamp saved in 2 formats > > old format 0hh:0mm and new format <> > > I am trying to make my code backward compa

[tw5] Re: Date format without $view ?

2020-05-20 Thread Tony K
it is a string but <$view tiddler=<> field=title format=date template="0hh:0mm" /> works in both cases the code is very long it is at https://akhater.github.io/drift/ $:/ak/plugins/DailyNotes/ui/capture On Wednesday, May 20, 2020 at 8:00:57 PM UTC+3, Saq Imtiaz wrote: > > Is a string with th

[tw5] Re: Date format without $view ?

2020-05-20 Thread Saq Imtiaz
Is a string with the timestamp, or a tiddler title? Perhaps post the entirety of your code as I don't quite understand what timestamp represents in each case. On Wednesday, May 20, 2020 at 6:54:48 PM UTC+2, Tony K wrote: > > is it possible to manipulate a timestamp without the $view? > > I have

Re: [tw5] Re: date format

2020-04-22 Thread Mohammad
Added to TW-Scripts On Wednesday, April 22, 2020 at 7:18:09 PM UTC+4:30, Eric Shulman wrote: > > On Wednesday, April 22, 2020 at 7:10:08 AM UTC-7, Peter Buyze wrote: >> >> Eric, sorry for a basic question, but where is the view widget located? >> > > The date that is shown in each tiddler's headin

Re: [tw5] Re: date format

2020-04-22 Thread 'Peter Buyze' via TiddlyWiki
Thanks for that Mark. Now I'm all set. :-) 22 Apr 2020, 19:56 by tiddlywiki@googlegroups.com: > In other words, if you edit $:/core/ui/ViewTemplate/subtitle, like this: > > \> whitespace trim > <> $reveal type> => "nomatch"> stateTitle> =<<> folded> -> state> >>> text> > => "hide"> tag> => "d

Re: [tw5] Re: date format

2020-04-22 Thread 'Mark S.' via TiddlyWiki
In other words, if you edit $:/core/ui/ViewTemplate/subtitle, like this: \whitespace trim <$reveal type="nomatch" stateTitle=<> text="hide" tag="div" retain="yes" animate="yes"> <$link to={{!!modifier}} /> M: <$view field="modified" format="date" template={{$:/language/Tiddler/ DateFormat}}/> |

Re: [tw5] Re: date format

2020-04-22 Thread 'Peter Buyze' via TiddlyWiki
Eric, Birthe, thank you. I'm going to go for an extra view widget for the created date, so I will use Eric's code for that. I imagine I have to create a new tiddler and in the text box put Eric's code. But what title should I give the tid, and should I put anything in the tag field? 22 Apr 20

Re: [tw5] Re: date format

2020-04-22 Thread Eric Shulman
On Wednesday, April 22, 2020 at 7:10:08 AM UTC-7, Peter Buyze wrote: > > Eric, sorry for a basic question, but where is the view widget located? > The date that is shown in each tiddler's heading comes from *$:/core/ui/ViewTemplate/subtitle* which shows the *modified* date, using this line: <$vi

Re: [tw5] Re: date format

2020-04-22 Thread Birthe C
Peter, That is why some people edit the tiddler $:/core/ui/ViewTemplate/subtitle. You are right modified field is used here, you could use both modified and created field. I have one to the left and one to the right of my subtitle at least in some of my wikies. Birthe den 22. april 2020 kl.

[tw5] Re: date format

2020-04-22 Thread Jed Carty
You can do what you want as described in the documentation here: https://tiddlywiki.com/#ViewWidget:ViewWidget%20DateFormat <$view field='created' format=date template='DD-MM-'/> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe

Re: [tw5] Re: date format

2020-04-22 Thread 'Peter Buyze' via TiddlyWiki
Eric, sorry for a basic question, but where is the view widget located? 22 Apr 2020, 16:46 by elsdes...@gmail.com: > On Wednesday, April 22, 2020 at 6:18:58 AM UTC-7, Peter Buyze wrote: > >> Eric, I don't want those last digits because they add absolutely nothing, >> and they only make reading

Re: [tw5] Re: date format

2020-04-22 Thread 'Peter Buyze' via TiddlyWiki
Birthe, the date in the subtitle is the modified date. I am interested in the created date. 22 Apr 2020, 16:46 by strikkeglad...@gmail.com: > Peter, > > Why would you look in info for the date. It is visible in the tiddler > subtitle. Go to tiddler > $:/core/ui/ViewTemplate/subtitle. and see h

Re: [tw5] Re: date format

2020-04-22 Thread Eric Shulman
On Wednesday, April 22, 2020 at 6:18:58 AM UTC-7, Peter Buyze wrote: > > Eric, I don't want those last digits because they add absolutely nothing, > and they only make reading the date, which lacks dashes, more difficult. I > would also like to add dashes. > Thanks for providing the link. How can

Re: [tw5] Re: date format

2020-04-22 Thread Birthe C
Peter, Why would you look in info for the date. It is visible in the tiddler subtitle. Go to tiddler $:/core/ui/ViewTemplate/subtitle. and see how that is done. Tiddler subtitle is right before your eyes when working with your tiddler. Birthe -- You received this message because you are subs

Re: [tw5] Re: date format

2020-04-22 Thread 'Peter Buyze' via TiddlyWiki
Eric, I don't want those last digits because they add absolutely nothing, and they only make reading the date, which lacks dashes, more difficult. I would also like to add dashes. Thanks for providing the link. How can I get into the ViewWidget, and in there is it just a matter of amending the

[tw5] Re: date format

2020-04-22 Thread Eric Shulman
On Wednesday, April 22, 2020 at 5:40:46 AM UTC-7, Peter Buyze wrote: > > In the Info section of a tiddler there is, among other info, the created > date. > The format is mmddhhss+4 more digits. I don't want those last 4 > digits. How can I change this setting? > Actually, the format is 0

[tw5] Re: date format and the $view widget

2019-08-02 Thread Mohammad
Yep! It also does not use $view widget! :-) Cheers Mohammad On Friday, August 2, 2019 at 8:45:38 PM UTC+4:30, Mark S. wrote: > > That was just a paste-o. > > On Thursday, August 1, 2019 at 11:38:40 PM UTC-7, Mohammad wrote: >> >> The last line also is not required >> >> <$text field="yd" format=

[tw5] Re: date format and the $view widget

2019-08-02 Thread 'Mark S.' via TiddlyWiki
That was just a paste-o. On Thursday, August 1, 2019 at 11:38:40 PM UTC-7, Mohammad wrote: > > The last line also is not required > > <$text field="yd" format="date" template="mmm 0DD, " /> > > > > On Friday, August 2, 2019 at 4:25:26 AM UTC+4:30, Mark S. wrote: >> >> Here's an implementation

[tw5] Re: date format and the $view widget

2019-08-02 Thread TonyM
Mohammad My key recommendation is store dates as tiddlywiki date fields then all the format options, opperators, search order and more remain available to you. If you want to allow manual entry of dates provide it, but store the result as a standard date field. If you always move to and from th

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
The last line also is not required <$text field="yd" format="date" template="mmm 0DD, " /> On Friday, August 2, 2019 at 4:25:26 AM UTC+4:30, Mark S. wrote: > > Here's an implementation of your suggestion (using pre 20) > > <$set name="year" filter="[{!!yd}split[-]nth[1]]"> > <$set name="mpo

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
Mark, Based on your solution, there is no need to use the $view any more! On Friday, August 2, 2019 at 4:25:26 AM UTC+4:30, Mark S. wrote: > > Here's an implementation of your suggestion (using pre 20) > > <$set name="year" filter="[{!!yd}split[-]nth[1]]"> > <$set name="mpos" filter="[{!!yd}split

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
I did not get the point! I explain the case in more clear manner to see how I can use from your comment 1. I am developing a timelines plugin 2. The timelines plugin uses a field called date to create a horizontal or vertical flow of events 3. The date field should have year, month

[tw5] Re: date format and the $view widget

2019-08-01 Thread TonyM
Mohammad, My suggestion is still valid the way you are using it. When it comes to date and time handling it is best to go back to the the most complete standard, one which caters for leading zeros, validation, international time zones and formatting via the tools built into tiddlywiki. Sure if

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
Added to TW-Scripts! On Friday, August 2, 2019 at 4:25:26 AM UTC+4:30, Mark S. wrote: > > Here's an implementation of your suggestion (using pre 20) > > <$set name="year" filter="[{!!yd}split[-]nth[1]]"> > <$set name="mpos" filter="[{!!yd}split[-]nth[2]]"> > <$set name="day" filter="[{!!yd}split[-

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
Tony! I am developing a timelines plugin and it uses a field to keep date and it is not the modified/created system field! So I want user has the flexibility to enter date as 2019-03-01 or 20190301. --Mohammad On Friday, August 2, 2019 at 2:45:13 AM UTC+4:30, TonyM wrote: > > Mohammad, > > With

[tw5] Re: date format and the $view widget

2019-08-01 Thread Mohammad
Thanks Mark! It works like a charm! Cheers Mohammad On Friday, August 2, 2019 at 4:25:26 AM UTC+4:30, Mark S. wrote: > > Here's an implementation of your suggestion (using pre 20) > > <$set name="year" filter="[{!!yd}split[-]nth[1]]"> > <$set name="mpos" filter="[{!!yd}split[-]nth[2]]"> > <$set n

[tw5] Re: date format and the $view widget

2019-08-01 Thread 'Mark S.' via TiddlyWiki
Here's an implementation of your suggestion (using pre 20) <$set name="year" filter="[{!!yd}split[-]nth[1]]"> <$set name="mpos" filter="[{!!yd}split[-]nth[2]]"> <$set name="day" filter="[{!!yd}split[-]nth[3]]"> <$set name="month" filter="Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec +[nth]">

[tw5] Re: date format and the $view widget

2019-08-01 Thread TonyM
Mohammad, With respect why?, I would keep the dates in system format and produce the output in the required format. My Journal tiddlers put the date in a journal-date field for this very reason. An approach, would be to use the new split operator on "-" then the set widgets select keyword to