Convert-Binary-C
    
    
  
  
  
view release on metacpan or search on metacpan
tests/include/pdclib/functions/time/ctime.c view on Meta::CPAN
   Permission is granted to use, modify, and / or redistribute at will.
*/
#include <time.h>
#ifndef REGTEST
char * ctime( const time_t * timer )
{
    /* Section 4.12.3.2 of X3.159-1989 requires that
        The ctime function converts the calendar time pointed to by timer
        to local time in the form of a string. It is equivalent to
            asctime(localtime(timer))
    */
    struct tm * tmp = localtime( timer );
    return tmp ? asctime( tmp ) : NULL;
}
#endif
#ifdef TEST
tests/include/pdclib/include/time.h view on Meta::CPAN
    int tm_isdst; /* >0 DST, 0 no DST, <0 information unavailable */
};
/* Returns the number of "clocks" in processor time since the invocation
   of the program. Divide by CLOCKS_PER_SEC to get the value in seconds.
   Returns -1 if the value cannot be represented in the return type or is
   not available.
*/
_PDCLIB_PUBLIC clock_t clock( void );
/* Returns the difference between two calendar times in seconds. */
_PDCLIB_PUBLIC double difftime( time_t time1, time_t time0 );
/* Normalizes the values in the broken-down time pointed to by timeptr.
   Returns the calender time specified by the broken-down time.
*/
_PDCLIB_PUBLIC time_t mktime( struct tm * timeptr );
/* Returns the current calender time. If timer is not a NULL pointer, stores
   the current calender time at that address as well.
*/
( run in 0.427 second using v1.01-cache-2.11-cpan-5dc5da66d9d )