Date, Time, and Monetary Manipulation
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ asctime │ "time.h" │ asctime
│ Converts │
│ │ │ │ time │
│ │ │ │ stored as │
│ │ │ │ a struc- │
│ │ │ │ ture to a │
│ │ │ │ character │
│ │ │ │ string in │
│ │ │ │ storage. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ clock │ "time.h" │ clock
│ Deter- │
│ │ │ │ mines │
│ │ │ │ processor │
│ │ │ │ time. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ ctime │ "time.h" │ ctime
│ Converts │
│ │ │ │ time │
│ │ │ │ stored as │
│ │ │ │ a long │
│ │ │ │ value to │
│ │ │ │ a char- │
│ │ │ │ acter │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ difftime │ "time.h" │ difftime
│ Calcu- │
│ │ │ │ lates the │
│ │ │ │ differ- │
│ │ │ │ ence │
│ │ │ │ between │
│ │ │ │ two │
│ │ │ │ times. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _ftime │ "sys\timeb.h"│ _ftime
│ Obtains │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ time and │
│ │ │ │ stores it │
│ │ │ │ in a │
│ │ │ │ struc- │
│ │ │ │ ture. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ gmtime │ "time.h" │ gmtime
│ Converts │
│ │ │ │ time to │
│ │ │ │ Coordi- │
│ │ │ │ nated │
│ │ │ │ Universal │
│ │ │ │ Time │
│ │ │ │ struc- │
│ │ │ │ ture. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ localtime │ "time.h" │ localtime
│ Converts │
│ │ │ │ time to │
│ │ │ │ local │
│ │ │ │ time. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ mktime │ "time.h" │ mktime
│ Converts │
│ │ │ │ local │
│ │ │ │ time into │
│ │ │ │ calendar │
│ │ │ │ time. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _strdate │ "time.h" │ _strdate
│ Stores │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ date in a │
│ │ │ │ buffer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ strfmon │ "monetary.h" │ strfmon
│ Converts │
│ │ │ │ a mone- │
│ │ │ │ tary │
│ │ │ │ value to │
│ │ │ │ a for- │
│ │ │ │ matted │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ strftime │ "time.h" │ strftime
│ Converts │
│ │ │ │ time to a │
│ │ │ │ multibyte │
│ │ │ │ character │
│ │ │ │ string. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ strptime │ "time.h" │ strptime
│ Converts │
│ │ │ │ time │
│ │ │ │ stored as │
│ │ │ │ a char- │
│ │ │ │ acter │
│ │ │ │ string to │
│ │ │ │ a struc- │
│ │ │ │ ture. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _strtime │ "time.h" │ _strtime
│ Copies │
│ │ │ │ the │
│ │ │ │ current │
│ │ │ │ time into │
│ │ │ │ a buffer. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ time │ "time.h" │ time
│ Returns │
│ │ │ │ the time │
│ │ │ │ in │
│ │ │ │ seconds. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ tzset │ "time.h" │ tzset
│ Changes │
│ │ │ │ the time │
│ │ │ │ zone and │
│ │ │ │ daylight │
│ │ │ │ saving │
│ │ │ │ time zone │
│ │ │ │ values. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ utime │ "sys\utime.h"│ utime
│ Sets the │
│ │ │ │ modifica- │
│ │ │ │ tion time │
│ │ │ │ for a │
│ │ │ │ file. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsftime │ "wchar.h" │ wcsftime
│ Converts │
│ │ │ │ the time │
│ │ │ │ and date │
│ │ │ │ to a wide │
│ │ │ │ character │
│ │ │ │ string. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: Bessel Functions]
[Next: Messages]