Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Calling mktime from mojo - Modular
M
Modular
•
3y ago
•
15 replies
sa-code
Calling mktime from mojo
I
'm trying to call C
's mktime from mojo but I seem to get a negative number
.
Here
's the code
, is the external call correct
? mktime returns a
time_t
time_t
which should be a positive int
, but I see a negative value
.
https://github.com/sa-/mo-time/blob/02cf8d1ccdd92ab1ca0863f1538d342d48b18f59/mo_time/date_time.mojo#L73
GitHub
mo-time/mo_time/date_time.mojo at 02cf8d1ccdd92ab1ca0863f1538d342d4...
It
's time for a time pkg in
Mojo
. Contribute to sa
-
/mo
-time development by creating an account on GitHub
.
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
example of python code calling a mojo lib and its mojo code
M
Modular / questions
2y ago
Calling methods from list indexes
M
Modular / questions
2y ago
Rewrite Mojo in Mojo
M
Modular / questions
3y ago
Unable to use PyTorch from Mojo
M
Modular / questions
15mo ago