diff options
| author | Daniel Andreas Wang <danielaw@relvokcor.xyz> | 2026-03-12 16:39:40 +0100 |
|---|---|---|
| committer | Daniel Andreas Wang <danielaw@relvokcor.xyz> | 2026-03-12 16:39:40 +0100 |
| commit | 6f966bd1132c476d9bf9c266e59f531cb3c26e27 (patch) | |
| tree | c882e5481cf560238eebc449b8234f7187a3fc15 /epoch.c | |
Diffstat (limited to 'epoch.c')
| -rw-r--r-- | epoch.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#include <stdio.h> +#include <time.h> + +int main() { + time_t now; + + now = time(NULL); // Get current time + + printf("Seconds since epoch: %ld\n", (long)now); + + return 0; +} |
