ActionScript 3 Working with Date and Time Ante meridiem (AM) or Post meridiem (PM) for 12-hour clock


Example

function meridiem(d:Date):String {
    return (d.hours > 11) ? "pm" : "am";
}