1 document.write('<div id="lcd">');
3 var locale = CFLocaleCopyCurrent();
4 var now = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent());
5 var formatter = CFDateFormatterCreate(NULL, locale, kCFDateFormatterNoStyle, kCFDateFormatterNoStyle);
8 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UINoAMPMTimeFormat));
9 var time = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
10 document.write('<h1>');
12 document.write('</h1>');
15 CFDateFormatterSetFormat(formatter, UIDateFormatStringForFormatType(UIWeekdayNoYearDateFormat));
16 var date = CFDateFormatterCreateStringWithDate(NULL, formatter, now);
17 document.write('<h2>');
19 document.write('</h2>');
25 document.write('</div>');