[Remind-Fans] Heads up / speak up: Change coming to Remind's parser

Justin Alcorn justin at jalcorn.net
Thu Aug 22 13:19:22 EDT 2024


On Thu, Aug 22, 2024 at 12:52 PM Dianne Skoll via Remind-fans <
remind-fans at lists.skoll.ca> wrote:

> On Thu, 22 Aug 2024 12:33:09 -0400
> Justin Alcorn <justin at jalcorn.net> wrote:
>
> > When using sunrise() I was formatting it by using _am_pm and _no_lz
> > (to remove leading zeros) like this
>
> Remind now has a built-in ampm() function that does what _am_pm
> used to do and more.  For example:
>
>     REM MSG [ampm(6:15)] [ampm(18:13)] [ampm(0:12)]
>
> produces:
>
>     6:15AM 6:13PM 12:12AM
>
> It doesn't add a leading zero if the hour is only one digit, however.
>
> > I feel really stupid for not backing up my old defs.rem, but I didn't
> > think I modified it and figured I could always get an old version.
>
> You can get an old version of defs.rem from git.  But defs.rem was
> never meant to be used as-is in a life file; it is just a grab-bag of
> example.  I guess I should make that clear in a comment at the top of
> the file.
>
>
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dianne.skoll.ca/pipermail/remind-fans/attachments/20240822/fe9e61cb/attachment.htm>


More information about the Remind-fans mailing list