SW500008 Microchip Technology, SW500008 Datasheet - Page 243

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Library Functions
MKTIME
Synopsis
Description
The mktime() function converts the local calendar time referenced by the tm structure pointer tmptr
into a time being the number of seconds passed since Jan 1
represented.
Example
See Also
ctime(), asctime()
Return Value
The time contained in the tm structure represented as the number of seconds since the 1970 Epoch,
or -1 if this time cannot be represented.
#include <time.h>
time_t mktime (struct tm * tmptr)
#include <time.h>
#include <stdio.h>
void
main (void)
{
}
struct tm birthday;
birthday.tm_year = 1955;
birthday.tm_mon = 2;
birthday.tm_mday = 24;
birthday.tm_hour = birthday.tm_min = birthday.tm_sec = 0;
printf("you have been alive approximately %ld seconds\n", mktime(&birthday));
st
1970, or -1 if the time cannot be
229

Related parts for SW500008