Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move dillon's time conversion functions to a new header <timeconv.h>. | wollman | 2002-06-17 | 1 | -1/+1 |
| | | | | | | Since they were never documented and have never appeared in a FreeBSD release, no repo-copy of the header is done. This removes namespace pollution from <time.h>. | ||||
* | Fix the style of the SCM ID's. | obrien | 2002-03-22 | 1 | -3/+3 |
| | | | | I believe have made all of libc .c's as consistent as possible. | ||||
* | I've been meaning to do this for a while. Add an underscore to the | dillon | 2002-01-19 | 1 | -12/+12 |
| | | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee. | ||||
* | Add time_to_int(), int_to_time(), time_to_long(), long_to_time(). | dillon | 2001-10-28 | 1 | -0/+40 |
| | |||||
* | Add routines to convert time_t to/from fixed-bit fields. These routines | dillon | 2001-10-28 | 1 | -0/+60 |
serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week |