1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * time conversion translation support 1N/A * this is unix dadgummit 1N/A * fix up LC_TIME data after loading 1N/A * convert ms word date spec w to posix strftime format f 1N/A * next char after f returned 1N/A * the caller already made sure f is big enough 1N/A for (w = r +
1; *w; *f++ = *w++)
1N/A * load the native LC_TIME data for the current locale 1N/A * synthesize TM_TIME format from the ms word template 1N/A for (t =
buf; *s = *t++; s++);
1N/A for (t =
buf; *s = *t++; s++);
1N/A * synthesize TM_DATE format 1N/A * synthesize TM_DEFAULT format 1N/A while (*s++ = *t++);
1N/A * load the LC_TIME data for the current locale 1N/A * check that tm_info.format matches the current locale