Jake's Radio Macros
Macros you can use in Radio UserLand posts and templates





Radio Stuff






Themes







Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Tuesday, May 28, 2002
 

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:

<%
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)
%>


11:14:14 PM    comment []


Click here to visit the Radio UserLand website. © Copyright 2002 Jake Savin.
Last update: 6/19/02; 2:24:25 AM.
This theme is based on the SoundWaves (blue) Manila theme.
May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Feb   Jun