Andrew Nguyen
6086610314
msvcrt: Implement _localtime32_s.
2010-10-11 17:11:37 +02:00
Andrew Nguyen
90771ab605
msvcrt: Use the write_invalid_msvcrt_tm helper in _gmtime64_s.
2010-10-11 17:11:37 +02:00
Andrew Nguyen
e245cb52c6
msvcrt: Implement _localtime64_s.
2010-10-11 17:11:37 +02:00
Andrew Nguyen
ac26d786c4
msvcrt: Convert the Unix asctime string from CP_UNIXCP to CP_ACP.
2010-09-28 17:33:15 +02:00
Piotr Caban
6467c8325f
msvcrt: Added _gmtime32_s and _gmtime64_s implementation.
2010-08-27 12:06:00 +02:00
Piotr Caban
471bad1ee8
msvcrt: Added _strdate_s and _wstrdate_s implementation.
2010-08-27 12:05:42 +02:00
Piotr Caban
7d0c04d31c
msvcrt: Added _strtime_s and _wstrtime_s implementation.
2010-08-27 12:05:10 +02:00
Piotr Caban
c4d6877894
msvcrt: Added _mkgmtime implementation.
2010-04-27 13:04:45 -05:00
Piotr Caban
8c954c0957
msvcrt: Avoid using localtime_r.
2010-03-29 15:50:20 +02:00
Alexandre Julliard
82f175e9b5
msvcrt: Replace long by MSVCRT_long.
2009-05-23 11:57:39 +02:00
Alexandre Julliard
8408e3a955
msvcrt: Add explicit 32- and 64-bit versions of the time functions.
2009-05-23 11:12:12 +02:00
Michael Stefaniuc
9d4c9a0cdd
msvcrt: Remove superfluous pointer casts.
2009-01-29 14:06:15 +01:00
Alexandre Julliard
8a658d7d51
msvcrt: Rename _ftime to avoid conflicts.
2008-12-15 20:08:33 +01:00
Alexandre Julliard
d8ab5a14aa
msvcrt: Use intptr_t or size_t instead of long where appropriate.
2008-12-12 10:19:55 +01:00
Michael Stefaniuc
276b938e1d
msvcrt: Use NULL instead of casting zero.
2008-12-05 12:36:19 +01:00
Jeff Zaroyko
82f77cc17a
msvcrt: Avoid a NULL pointer deref in ctime.
2008-10-02 11:24:01 -05:00
Dmitry Timoshkov
e98d1da7d4
msvcrt: Restore error handling code in localtime.
2007-08-21 21:39:03 +02:00
Dmitry Timoshkov
1e5b131d7a
msvcrt: Route mktime and localtime to glibc.
2007-08-21 12:41:35 +02:00
Alexandre Julliard
429cd9e817
msvcrt: Avoid including system headers in msvcrt.h.
2006-07-10 11:54:10 +02:00
Jeremy White
a73d568ece
msvcrt: Solaris asctime_r compilation fix.
2006-06-19 22:42:05 +02:00
Alexandre Julliard
24beabfd4e
msvcrt: Explicitly specify CDECL calling convention on exported functions.
2006-06-13 11:40:23 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Alexandre Julliard
7fe881c7f2
msvcrt: Implementation of wcsftime (based on a patch by Mike McCormack).
2006-03-23 20:35:52 +01:00
Dmitry Timoshkov
ea0e7b3397
msvcrt: localtime should accept any positive time value.
2006-02-11 12:15:21 +01:00
Hans Leidekker
1b69f035e1
msvcrt: Stub implementation for wcsftime.
2006-01-23 19:29:15 +01:00
Alexandre Julliard
f9e5b0f5f0
msvcrt: Implemented asctime, ctime and strftime instead of using the libc ones.
...
Make the code thread-safe by using asctime_r if available.
2006-01-14 17:22:03 +01:00
Alexandre Julliard
06c1a36bce
msvcrt: Return a per-thread buffer in localtime and gmtime.
2005-12-21 20:54:26 +01:00
Marcus Meissner
9a583763ee
msvcrt: Implemented wctime(), wasctime().
...
Free thread data in DLL_THREAD_DETACH.
2005-12-21 20:23:47 +01:00
Robert Reif
b8d1544661
Implement _wstrdate and _wstrtime with tests.
2005-10-30 19:03:58 +00:00
Alexandre Julliard
6b2a9b3022
Added implementation of _dstbias and __p__dstbias.
...
Added macros for _dstbias, _daylight, _timezone and _tzname.
2005-09-27 10:55:50 +00:00
Phil Krylov
6618b0355c
Added detection of platforms which don't have external timezone and
...
daylight variables, and emulation of these variables.
2005-05-24 11:52:46 +00:00
Juan Lang
7bf1ee877d
- move _timezone to time.c, and correct its type
...
- implement _tzset, and initialize _daylight, _timezone, and _tzname
from libc values
2005-05-14 11:07:10 +00:00
Juan Lang
576aa4a6d8
Export _tzname, expected by Mozilla.
2005-04-23 19:06:29 +00:00
Rein Klazes
dceae02d73
- RtlTimeFieldsToTime should not normalize the time fields
...
structure. Instead return error when it is given an unormalized
date.
- Use better algorithms for RtlTimeToTimeFields and
RtlTimeFieldsToTime. RtlTimeToTimeFields is about 3 times faster.
- Add tests for RtlTimeFieldsToTime.
- SystemTimeToFileTime must fail if RtlTimeFieldsToTime fails. Users
of SystemTimeToFileTime must do likewise.
- Remove a todo_wine from SystemTimeToFileTime tests.
- Since msvcrt.mktime must accept unnormalized dates, it cannot use
SystemTimeToFileTime and do the calculations itself.
- Add some tests for mktime accepting unnormalized dates.
2004-11-06 03:53:53 +00:00
Rein Klazes
2fc0f991d8
In MSVCRT_localtime() return tm_isdst = 0 when there are no daylight
...
time changes in the local time zone.
2004-10-27 21:17:44 +00:00
Rein Klazes
4ca34c4b2f
Correctly use the returned value from GetTimeZoneInformation.
2004-10-25 21:48:57 +00:00
Rein Klazes
dc78e9a595
- mktime should compute the tm_wday, tm_yday and renormalize the
...
other fields of the supplied tm structure.
- add prototype declarations for the time functions.
2004-10-21 19:56:46 +00:00
Uwe Bonnes
46e922bba5
Added MSVCRT_CLOCKS_PER_SEC define.
2004-09-08 19:05:28 +00:00
Dimitrie O. Paun
0377462460
Split the MSVCRT implementation headers from the public headers.
...
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00
Uwe Bonnes
1c6cb382bc
Correct errors with move to kernel time functions.
...
Add test case.
2004-03-25 00:12:40 +00:00
Hans Leidekker
3f09feda6e
Reimplement time functions with Win32 APIs.
...
Implement localtime()/gmtime().
2004-03-19 01:16:59 +00:00
Hans Leidekker
6ee09f5d56
Implement _ftime with Win32 APIs.
2004-03-11 00:43:47 +00:00
Marcus Meissner
dbcbbe0211
Added _daylight stub int, and __p__daylight function.
2003-03-04 02:19:15 +00:00
Patrik Stridvall
57bf45067a
MSVC compatibility fixes.
2002-08-26 21:53:24 +00:00
Alexandre Julliard
0799c1a780
Added LGPL standard comment, and copyright notices where necessary.
...
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Alexandre Julliard
bd1689ec0a
Don't include debugtools.h in the header file, moved it to the C files
...
that need it (and used the new wine/debug.h while we are at it).
2002-01-22 00:57:16 +00:00
François Gouget
d1d07fb801
mktime must normalize the struct tm fields.
2001-12-05 22:08:46 +00:00
Gerard Patel
3953614bbd
- implement mbscspn mostly as a stub
...
- reimplement mktime
2001-11-12 15:47:26 +00:00
Francois Gouget
45e7a846bf
We must not free the pointer returned by localtime (especially not
...
with MSVCRT_free!).
We no longer need to include stdlib.h.
2001-04-23 18:22:33 +00:00
Gerald Pfeifer
ab02c2bdc9
Fixed MSVCRT_clock return type.
2001-04-16 18:54:31 +00:00