diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-11 07:24:31 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-11 07:24:31 +0300 |
commit | 1362f223522450a6395623b97000bc70464566ab (patch) | |
tree | 2da069249f34f92fb6e9147bdd5e544d32d9d3c6 /helpers/timeformat.c | |
parent | 5c7385d36987e4eaad95a4ff3a7d735014833f90 (diff) | |
parent | 72882c6a1e76730e6e706941a1a3a855ea023b69 (diff) | |
download | egawk-1362f223522450a6395623b97000bc70464566ab.tar.gz egawk-1362f223522450a6395623b97000bc70464566ab.tar.bz2 egawk-1362f223522450a6395623b97000bc70464566ab.zip |
Merge branch 'master' into feature/regex-type
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; +} |