Non-virus open source versions of mktime?

I am working on a microcontroller with a primitive standard library, and I need to convert the calendar structure to a temporary offset-from-epoch and vice versa, ala struct tmtime_t. There is no built-in function for this.

Can someone call me a decent implementation, which is licensed with open source code, can be used in proprietary software? (i.e. without LGPL / GPL)

I might be able to write one on my own, but decided that I should see if I could start.

+3
source share
2 answers

, BSD libc, . lib/libc/stdtime/localtime.c mktime time1. time1 .

: src/lib/libc/stdtime/Attic/localtime.c

+5

Newlib - , GPL, , . mktime. GPL, , ( ).

, . , , , mktime, , , .

+3
source

All Articles