From a188a60ef38c39c7ddda96fdd88c5abb4feebe2b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 27 May 2015 22:40:48 -0400 Subject: Add two new helper programs. --- helpers/timeformat.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 helpers/timeformat.c (limited to 'helpers/timeformat.c') diff --git a/helpers/timeformat.c b/helpers/timeformat.c new file mode 100644 index 00000000..c3d1b933 --- /dev/null +++ b/helpers/timeformat.c @@ -0,0 +1,13 @@ +#include +#include +#include + +int main(int argc, char **argv) +{ + setlocale(LC_ALL, ""); + printf("D_T_FMT: %s\n", nl_langinfo(D_T_FMT)); +#ifdef _DATE_FMT + printf("_DATE_FMT: %s\n", nl_langinfo(_DATE_FMT)); +#endif /* _DATE_FMT */ + return 0; +} -- cgit v1.2.3