<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com c:time.h</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T16:10:08+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/asctime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/clock_t?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/clocks_per_sec?rev=1708041881&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/ctime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/difftime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/gmtime?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/localtime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/mktime?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/strftime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/strptime?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/time?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/time_t?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_hour?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_isdst?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_mday?rev=1708041884&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_min?rev=1708041881&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_mon?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_sec?rev=1708041882&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_wday?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_yday?rev=1708041883&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/tm_year?rev=1708041882&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/c/time.h/asctime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>asctime</title>
        <link>https://code-reference.com/c/time.h/asctime?rev=1708041883&amp;do=diff</link>
        <description>asctime


   char *asctime(const struct tm *timeptr);


Description

The function asctime() converts the time in the struct ptr to a character string of the format:
Day Month Date Hour:Minute:Second Year\n\0

asctime C Sourcecode Example


/* 
 * asctime example code
 * http://code-reference.com/c/time.h/asctime 
 */
#include &lt;stdio.h&gt;
#include &lt;time.h&gt;
 
int main ( void )
{
  time_t rawtime;
  struct tm * timeinfo;
 
  time ( &amp;rawtime );
  timeinfo = localtime ( &amp;rawtime );
  printf ( &quot;Current …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:44+02:00</dc:date>
        <title>clock</title>
        <link>https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff</link>
        <description>clock


    clock_t clock(void);


Description

The clock() function returns the processor time since the program started, or -1 if that information is unavailable.

To convert the return value to seconds, divide it by CLOCKS_PER_SEC. (Note: if your compiler is POSIX compliant, then CLOCKS_PER_SEC is always defined as 1000000.)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/clock_t?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>clock_t</title>
        <link>https://code-reference.com/c/time.h/clock_t?rev=1708041882&amp;do=diff</link>
        <description>typedef a-type clock_t;

The type is the arithmetic type a-type of an object that you declare to hold the value returned by clock, representing elapsed processor time.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/clocks_per_sec?rev=1708041881&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:41+02:00</dc:date>
        <title>CLOCKS_PER_SEC</title>
        <link>https://code-reference.com/c/time.h/clocks_per_sec?rev=1708041881&amp;do=diff</link>
        <description>#define CLOCKS_PER_SEC &lt;integer constant expression &gt; 0&gt;

The macro yields the number of clock ticks, returned by clock, in one second.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/ctime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>ctime</title>
        <link>https://code-reference.com/c/time.h/ctime?rev=1708041883&amp;do=diff</link>
        <description>ctime


#include &lt;time.h&gt;
char *ctime(const time_t *timer);


Description

The ctime() function shall convert the time pointed to by clock, representing time in seconds since the Epoch,
to local time in the form of a string. It shall be equivalent to</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/difftime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>c:time.h:difftime</title>
        <link>https://code-reference.com/c/time.h/difftime?rev=1708041883&amp;do=diff</link>
        <description>double difftime(time_t time1, time_t time2);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/gmtime?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>c:time.h:gmtime</title>
        <link>https://code-reference.com/c/time.h/gmtime?rev=1708041882&amp;do=diff</link>
        <description>struct tm *gmtime(const time_t *timer);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/localtime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>localtime</title>
        <link>https://code-reference.com/c/time.h/localtime?rev=1708041883&amp;do=diff</link>
        <description>struct tm *localtime(const time_t *timer);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/mktime?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>c:time.h:mktime</title>
        <link>https://code-reference.com/c/time.h/mktime?rev=1708041882&amp;do=diff</link>
        <description>time_t mktime(struct tm *timeptr);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/strftime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>c:time.h:strftime</title>
        <link>https://code-reference.com/c/time.h/strftime?rev=1708041883&amp;do=diff</link>
        <description>size_t strftime(char *str, size_t maxsize, const char *format, const struct tm *timeptr);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/strptime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>c:time.h:strptime</title>
        <link>https://code-reference.com/c/time.h/strptime?rev=1708041883&amp;do=diff</link>
        <description>char *strptime(const char *restrict buf, const char *restrict format, struct tm *restrict tm);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/time?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>c:time.h:time</title>
        <link>https://code-reference.com/c/time.h/time?rev=1708041882&amp;do=diff</link>
        <description>time_t time(time_t *timer);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/time_t?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>time_t</title>
        <link>https://code-reference.com/c/time.h/time_t?rev=1708041883&amp;do=diff</link>
        <description>typedef a-type time_t;

The type is the arithmetic type a-type of an object that you declare to hold the value returned by time. The value represents calendar time.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm</title>
        <link>https://code-reference.com/c/time.h/tm?rev=1708041882&amp;do=diff</link>
        <description>struct tm {
    int tm_sec;        seconds after the minute (from 0)
    int tm_min;        minutes after the hour (from 0)
    int tm_hour;       hour of the day (from 0)
    int tm_mday;       day of the month (from 1)
    int tm_mon;        month of the year (from 0)
    int tm_year;       years since 1900 (from 0)
    int tm_wday;       days since Sunday (from 0)
    int tm_yday;       day of the year (from 0)
    int tm_isdst;      Daylight Saving Time flag
    };</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_hour?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm_hour</title>
        <link>https://code-reference.com/c/time.h/tm_hour?rev=1708041882&amp;do=diff</link>
        <description>description of tm_hour

tm_hour is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_hour c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_isdst?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm_isdst</title>
        <link>https://code-reference.com/c/time.h/tm_isdst?rev=1708041882&amp;do=diff</link>
        <description>description of tm_isdst

tm_isdst is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_isdst c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_mday?rev=1708041884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:44+02:00</dc:date>
        <title>tm_mday</title>
        <link>https://code-reference.com/c/time.h/tm_mday?rev=1708041884&amp;do=diff</link>
        <description>description of tm_mday

tm_mday is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_mday c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_min?rev=1708041881&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:41+02:00</dc:date>
        <title>tm_min</title>
        <link>https://code-reference.com/c/time.h/tm_min?rev=1708041881&amp;do=diff</link>
        <description>description of tm_min

tm_min is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_min c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_mon?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm_mon</title>
        <link>https://code-reference.com/c/time.h/tm_mon?rev=1708041882&amp;do=diff</link>
        <description>description of tm_mon

tm_mon is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_mon c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_sec?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm_sec</title>
        <link>https://code-reference.com/c/time.h/tm_sec?rev=1708041882&amp;do=diff</link>
        <description>description of tm_sec

tm_sec is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_sec c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_wday?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>tm_wday</title>
        <link>https://code-reference.com/c/time.h/tm_wday?rev=1708041883&amp;do=diff</link>
        <description>description of tm_wday

tm_wday is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_wday c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_yday?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>tm_yday</title>
        <link>https://code-reference.com/c/time.h/tm_yday?rev=1708041883&amp;do=diff</link>
        <description>description of tm_yday

tm_yday is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_yday c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/tm_year?rev=1708041882&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:42+02:00</dc:date>
        <title>tm_year</title>
        <link>https://code-reference.com/c/time.h/tm_year?rev=1708041882&amp;do=diff</link>
        <description>description of tm_year

tm_year is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of tm_year c example
  no example at the moment</description>
    </item>
</rdf:RDF>
