[tw5] Re: A quiet Date

2019-04-09 Thread @TiddlyTweeter
Ciao S.S. 

Ohhh. *Very exciting*! I'm testing.

I think its good piece of work in a bunch of ways. Not least its nicely 
useful and shed's a lot of light on TW date workings that is very helpful.

The Godzilla size *regex* is also interesting. I was surprised to see a 
regex being able to do, in practice, "validation". Its not really designed 
for doing things that you'd normally use calculation for. GodzillaDateReg 
I'll play with to check the matching.

Both PMario and TonyM gently warned me in the thread I started, you refer 
to, to not mess with Mother's Creation dates. Likely they are right. But 
I'll play with it more yet.

I'll comment back later.

Best wishes
Josiah


On Tuesday, 9 April 2019 03:05:42 UTC+2, S. S. wrote:
>
>
> I'm glad Josiah made a post yesterday:  Query -- Changing creation date 
> in a human actionable way? -- #creationDate 
> 
>
> I thought, of course this <> macro can do it! But it couldn't!!
>
> Reason: The date result was being output in block mode, and the 
> $action-setfield widget was not accepting it.
>
> It took a while to figure that out. The fix was to remove all spaces and 
> line breaks in 3 macros. Makes horrible reading - but now it works!
>
> So, attached is v1.03 with those fixes, along with a macro to change the 
> created date of a tiddler.
> I'm not going to tell Josiah his answer is here - so even though it 
> doesn't have a regex tag, he'll have to read it to get it  !!!
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5f96a488-9e2c-4d0a-932f-88deef1cdd82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A quiet Date

2019-04-08 Thread S. S.

I'm glad Josiah made a post yesterday:  Query -- Changing creation date in 
a human actionable way? -- #creationDate 


I thought, of course this <> macro can do it! But it couldn't!!

Reason: The date result was being output in block mode, and the 
$action-setfield widget was not accepting it.

It took a while to figure that out. The fix was to remove all spaces and 
line breaks in 3 macros. Makes horrible reading - but now it works!

So, attached is v1.03 with those fixes, along with a macro to change the 
created date of a tiddler.
I'm not going to tell Josiah his answer is here - so even though it doesn't 
have a regex tag, he'll have to read it to get it  !!!



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c8a0e050-b347-497c-8300-b688d6491664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Change Field using date Macro.tid
Description: Binary data


date Macro ver.1.03.tid
Description: Binary data


[tw5] Re: A quiet Date

2019-04-05 Thread S. S.
Well, 

I was playing with the Set Widget Tester for attribute precedence 
 
tiddler that I posted a few days ago, and realized that in the *$set* 
widget, the *field* attribute takes precedence over the *index* attribute, 
so perhaps it would be too difficult to add in the *index* parameter to the 
*date 
Macro*, which really was an oversight as data tiddlers are such an integral 
part of TiddlyWiki.

And so it was easy, with just a minor tweak to 2 lines of the code! Took 
the opportunity to brush up a little, with the following changes:

   1. Corrected mistakes in the  Examples section, Macro column: removed 
   redundant sep parameter. Changed *date* to *invalid-date* 
   2. Changed some single quote delimiters to triple 
   3. Added fields for version number & issues & release-notes
   4. Added missing *empty-message* field to "set to default" macro 
   5. Added *code-black* style for  
   6. Added *index* parameter & its documentation

So here it is - version 1.02 attached below :
 
The date macro takes a string in a Common Date Format and returns it in a 
specified Date Format.

Regards



On Wednesday, April 3, 2019 at 11:07:43 AM UTC+7, Mohammad wrote:
>
> Hi S.S,
>  Great job!  well documented.
> Good flexibility to adopt many formats users may like.
>
> Cheers
> Mohammad
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/59f1b125-c646-4ab3-8823-075afdb955db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


date Macro ver.1.02.tid
Description: Binary data


[tw5] Re: A quiet Date

2019-04-02 Thread Mohammad
Hi S.S,
 Great job!  well documented.
Good flexibility to adopt many formats users may like.

Cheers
Mohammad


On Tuesday, April 2, 2019 at 10:08:29 PM UTC+4:30, S. S. wrote:
>
>
> It's been a quiet day today in TiddlyWikiLand.
>
> I'd like to share a small macro I've been working on the past weeks to 
> address a simple problem.
>
> I wanted to solve the difficulty I had in displaying Common Format dates, 
> such as 2019-04-02 as Tuesday 2nd April 2019.
>
> I decided to see if I could make a macro to do this, and to make it both 
> configurable and fit within one tiddler, just to see if I was able to do 
> so. I never realized how much effort that takes.
>
> Most of the questions I have been asking on the Group recently dealt with 
> issues that arose in trying to make this macro!
>
> The tiddler is attached below.
>
> Regards.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/180d97ca-2361-4132-8218-77dad7228f76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A quiet Date

2019-04-02 Thread TonyM
S S,

Nice work and nicely documented. This certainly addresses a gap in date 
handling with formats similar to those used for new journal entries, I 
think it will suit many users. 

It will take time for me to decide if I would adopt it on a regular basis 
because I have favored using the full tiddlywiki serial number to represent 
dates. For example my new journal process adds a journal-date field to 
enable more sophisticated search and selection of journal entries. However 
it is nice to know if I want to go down the alternative "simplified" dates 
path you have provided the means to do so.

*A Suggestion:* Use a json bundle to pack the macro and move everything 
that is displayed in the "date Macro" tiddler to another tiddler. The 
reason I say this is the act of adding the $:/tags/Macro tag will include 
the whole tiddler (Although not visible) every time a tiddler is displayed, 
it is like the importvariables process see 
https://tiddlywiki.com/#ImportVariablesWidget. 
Sure it seems to have no clear impact in a small wiki but it is not the 
optimum design approach. If you still want the documentation displayed when 
opening "date Macro" you can do a little test, if currentTiddler="date 
Macro" transclude the doco tiddler, otherwise do not.

Love your work, and thanks for sharing
Tony


On Wednesday, April 3, 2019 at 4:38:29 AM UTC+11, S. S. wrote:
>
>
> It's been a quiet day today in TiddlyWikiLand.
>
> I'd like to share a small macro I've been working on the past weeks to 
> address a simple problem.
>
> I wanted to solve the difficulty I had in displaying Common Format dates, 
> such as 2019-04-02 as Tuesday 2nd April 2019.
>
> I decided to see if I could make a macro to do this, and to make it both 
> configurable and fit within one tiddler, just to see if I was able to do 
> so. I never realized how much effort that takes.
>
> Most of the questions I have been asking on the Group recently dealt with 
> issues that arose in trying to make this macro!
>
> The tiddler is attached below.
>
> Regards.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/072485fc-88b7-475d-9b9d-ee6f2e776cd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.