<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 22, 2024 at 12:52 PM Dianne Skoll via Remind-fans <<a href="mailto:remind-fans@lists.skoll.ca">remind-fans@lists.skoll.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 22 Aug 2024 12:33:09 -0400<br>
Justin Alcorn <<a href="mailto:justin@jalcorn.net" target="_blank">justin@jalcorn.net</a>> wrote:<br>
<br>
> When using sunrise() I was formatting it by using _am_pm and _no_lz<br>
> (to remove leading zeros) like this<br>
<br>
Remind now has a built-in ampm() function that does what _am_pm<br>
used to do and more. For example:<br>
<br>
REM MSG [ampm(6:15)] [ampm(18:13)] [ampm(0:12)]<br>
<br>
produces:<br>
<br>
6:15AM 6:13PM 12:12AM<br>
<br>
It doesn't add a leading zero if the hour is only one digit, however.<br>
<br>
> I feel really stupid for not backing up my old defs.rem, but I didn't<br>
> think I modified it and figured I could always get an old version.<br>
<br>
You can get an old version of defs.rem from git. But defs.rem was<br>
never meant to be used as-is in a life file; it is just a grab-bag of<br>
example. I guess I should make that clear in a comment at the top of<br>
the file.<br><br></blockquote><div><br></div><div>Thank you! </div></div></div>