1,519 reputation
830
bio website
location
age
visits member for 3 years, 3 months
seen Jan 16 at 4:38

Nov
19
awarded  Popular Question
Nov
15
awarded  Nice Question
Nov
15
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Thanks, works :-)
Nov
15
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Hi David, I just realized that \begin{tbl}{Duration}{12:30 pm}{03:00 pm} gives -570 minutes instead of 150. Do you know a fix for that?
Oct
29
awarded  Popular Question
Oct
27
awarded  Popular Question
Oct
11
awarded  Yearling
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
okay, works great in my actual example. Thanks a lot for helping, David.
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
A solution could be to omit the time unit and simply test whether the start date is "larger" than the end date. If so, add 720. But I haven't figured out yet how to test ">="
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
The problem seems to be that the p is not matched and thus the 720 not added.
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Hi David, I then used (#1)*60+#2#3\if p#5+720 inside the definition but I end up with -610 min. Do you know why?
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Is it difficult to allow the input to have a half-space between the number and the unit, so 11:30\,am?
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Hi, thanks a lot, David. I just had to put a % after \edef\tmp{ to avoid a small horizontal space to be inserted. Works very well, thanks again.
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
I realized a strange error when I use the "duration" command inside a table/environment. I updated the post. Do you see how to avoid this error?
Sep
25
revised How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
added 897 characters in body
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
excellent, thanks a lot, David!
Sep
25
accepted How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Sep
25
comment How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
@StevenB.Segletes Thanks, both are okay, whatever is more convenient.
Sep
25
asked How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?
Sep
11
accepted Positioning of a (newly defined) symbol *relative* to a textbox