What, have I stumbled into some political landmine? GMT <> UTC ? It can be the 3rd of the month (with an easy regexp) in one place, but the 2nd of the month somewhere else. In that somewhere else, it would require a more complicated regexp that matches say 03(00|02|03) to the 2nd of the month.
But if you wanted to stick to only UTC, then I think Mohammad's #2 request should be possible, though painful. There's only 14 possible yearly calendars. So you could match the year against a "wednesday" calendar. Then match the month and day to determine if the date was a wednesday. There's about 4 Wednesdays per month, so there's about 672 elements that would have to be programmed (not counting the years, which would be limited to however many you wanted to plug in. Whew. That's why date filter operators are needed. On Wednesday, August 28, 2019 at 7:42:16 AM UTC-7, @TiddlyTweeter wrote: > > What's Greenwich got to do with it? > > On Wednesday, 28 August 2019 16:32:24 UTC+2, Mark S. wrote: >> >> The 3rd of the month AT Greenwich, or somewhere else? >> >> You would need to make a different match for every target locale. One >> location's 3rd is another location's 2nd and another location's 4th. >> >> I don't think regex is a good match for this kind of date comparison. >> What we need are more tools that will allow us to access and compare >> date stamps. More ways to convert local dates into UTC, add/subtract >> days, and then convert them back. Filters that understand days of >> the week, month, year. That sort of thing. >> >> Thanks! >> >> On Tuesday, August 27, 2019 at 10:48:13 PM UTC-7, Mohammad wrote: >>> >>> Some solution to first group >>> >>> modified in 2019: ^2019 >>> modified in January 2019: ^201901 >>> modified in August (any year) : ^\d{4}09 >>> modified on 3rd of each month: ^\d{6}03 >>> modified on 1st of December (any year): ^\d{4}1201 >>> modified between 1st and 9th of December (any year): ^\d{4}120 >>> >>> >>> The question >>> >>> created/modified on Wednesdays >>> >>> seems tricky and needs some scripting >>> >>> 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fb3f95d5-ed2b-4163-8d84-d687aba88935%40googlegroups.com.