aboutsummaryrefslogtreecommitdiffstats
path: root/helpers/timeformat.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-08 09:51:47 -0400
committerArnold D. Robbins <arnold@skeeve.com>2015-06-08 09:51:47 -0400
commita6568baf060045cadad1f05af5cfe43e31626b31 (patch)
tree4471355f7fc25c1549a915a03ab8b14fbeb8783d /helpers/timeformat.c
parentc70ee2ae9fc9fa99c0b3b1af20a7dd0203aaa0d1 (diff)
parent72882c6a1e76730e6e706941a1a3a855ea023b69 (diff)
downloadegawk-a6568baf060045cadad1f05af5cfe43e31626b31.tar.gz
egawk-a6568baf060045cadad1f05af5cfe43e31626b31.tar.bz2
egawk-a6568baf060045cadad1f05af5cfe43e31626b31.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'helpers/timeformat.c')
-rw-r--r--helpers/timeformat.c13
1 files changed, 13 insertions, 0 deletions
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 <stdio.h>
+#include <locale.h>
+#include <langinfo.h>
+
+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;
+}