SW006014 Microchip Technology, SW006014 Datasheet - Page 145
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
Specifications of SW006014
Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
- Current page: 145 of 246
- Download datasheet (3Mb)
© 2008 Microchip Technology Inc.
gmtime (Continued)
Example:
localtime
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
#include <time.h>
#include <stdio.h> /* for printf
int main(void)
{
}
Output:
UTC time = Mon Oct 20 16:43:02 2003
Converts a value to the local time.
<time.h>
struct tm *localtime(const time_t *tod);
tod
Returns the address of the time structure.
By default, the 16-bit compiler returns the time as instruction cycles.
With this default localtime and gmtime will be equivalent except
localtime will return tm_isdst (Daylight Savings Time flag) as -1 to
indicate that the status of Daylight Savings Time is not known.
#include <time.h>
#include <stdio.h> /* for printf
int main(void)
{
}
Output:
Local time = Mon Oct 20 16:43:02 2003
time_t timer;
struct tm *newtime;
timer = 1066668182; /* Mon Oct 20 16:43:02 2003 */
newtime = gmtime(&timer);
printf("UTC time = %s\n", asctime(newtime));
time_t timer;
struct tm *newtime;
timer = 1066668182; /* Mon Oct 20 16:43:02 2003 */
newtime = localtime(&timer);
printf("Local time = %s\n", asctime(newtime));
pointer to stored time
/* for gmtime, asctime, */
/* time_t, tm
/* for localtime,
/* asctime, time_t, tm */
DS51456E-page 141
*/
*/
*/
*/
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: