from gi.repository import GObject, Gio, GLib
import locale

FORMATS = ["%H:%M", "%a %d %b %Y", "%a %d %b %Y, %H:%M",
        "%A %e %B %Y", "%e %B %Y", "%e %b %Y", "%x",
        "%r %Z", "%X", "%x",
        "%I.%M", "%R", "%r"
        ]

times = ['fr_BE', 'en_US']

now = GLib.DateTime.new_now_utc()

for t in times:
    locale.setlocale(locale.LC_TIME, t)

    print t
    print "=" * len (t)
    for f in FORMATS:
        print "%s => %s" % (f, now.format(f))
