Mikkel Bruun asked on the Radio UserLand discussion group how to get a 24-hour time-stamp on his weblog posts. Here’s a macro for the item template, that returns a 24-hour time stamp. Use it in place of the <%when%> macro:
1 2 3 4 5 6 7 8 9 |
<% local (d = weblogData.posts.["<%paddedItemNum%>"].when); local (day, month, year, hour, minute, second); date.get (d, @day, @month, @year, @hour, @minute, @second); hour = string.padWithZeros (hour, 2); minute = string.padWithZeros (minute, 2); second = string.padWithZeros (second, 2); return (hour + ":" + minute + "'" + second) %> |