Use gnu_getopt. Change --qtime default to %R