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

Dianne Skoll dianne at skoll.ca
Thu Aug 22 12:50:52 EDT 2024


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.

Regards,

Dianne.


More information about the Remind-fans mailing list