Chapter 28. Format time using strftime

x::strftime formats a given date or time using a strftime(3) formatting string. The date and/or the time may be specified in several ways: a C library tm structure, a time_t, or an x::ymdhms object. x::ymd and x::hms work too, with only the date or the time-related strftime(3) formatting conversions producing meaningful results in these cases.