@(now:java.util.Date)

@main(title = "Useless home") {
    
    <p id="time">
        <span>@now.format("EEEE',' MMMM dd',' yyyy")</span>@now.format("hh'h' MM'mn' ss's'")
    </p>

    <script type="text/javascript" charset="utf-8">
        setInterval(function() {
            $('section').load('@action(controllers.Application.index) #time')
        }, 1000)
    </script>
    
}

