diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-05-27 22:40:48 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-05-27 22:40:48 -0400 |
commit | a188a60ef38c39c7ddda96fdd88c5abb4feebe2b (patch) | |
tree | 6805229d637db2a450873c3e0de03cc7ec72a2c8 /helpers/timeformat.c | |
parent | e07a65e10d9a9eb04ef97b2fb2f885c5595d8fac (diff) | |
download | egawk-a188a60ef38c39c7ddda96fdd88c5abb4feebe2b.tar.gz egawk-a188a60ef38c39c7ddda96fdd88c5abb4feebe2b.tar.bz2 egawk-a188a60ef38c39c7ddda96fdd88c5abb4feebe2b.zip |
Add two new helper programs.
Diffstat (limited to 'helpers/timeformat.c')
-rw-r--r-- | helpers/timeformat.c | 13 |
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; +} |