view examples/datebox.ur @ 17:2947170fcfd6

Fix sign error in clock skew correction
author Adam Chlipala <adam@chlipala.net>
date Sun, 21 Aug 2011 11:27:41 -0400
parents 8300d5f0dc19
children 554e342665fe
line wrap: on
line source
fun main () =

tm <- now;

dayCtl <- Datebox.create tm;

load <- return (Datebox.onChange dayCtl (fn d => alert (show d.Day)));

return
    <xml>
      <head><title>Datebox Example</title></head>
      <body onload={load}>
        {Datebox.render dayCtl}
      </body>
    </xml>