wolfcw/libfaketime
libfaketime modifies the system time for a single application observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 98
- Release rhythm 40
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 15
- age_days: 5610
- days_rel: 450
- days_push: 14
- n_releases_24m: 2
Adoption not part of the score
3106 stars · 377 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
libfaketime is an LD_PRELOAD library that intercepts system calls retrieving the current date and time, reporting faked times to a single application without changing the system clock. It ships with a 'faketime' command-line wrapper and supports absolute dates, relative offsets, and deterministic time sequences.
Use cases
- fake the system time for a single program
- make builds reproducible with fixed timestamps
- debug expired SSL certificate issues
- test software for year-2038 compliance
- run an application with a date in the past or future
- mock time in tests without changing the system clock
When to choose
- you need to control the time a single process sees without root or system-wide changes
- you want reproducible builds with deterministic timestamps
- you are debugging time-dependent behavior like certificate expiry
When to avoid
- the target binary is statically linked or setuid, since LD_PRELOAD cannot intercept it
- you need to fake time on Windows or non-UNIX platforms
- you need monotonic clock faking for JVM apps without extra configuration
Facets
library · maturity active
date-time testing developer-tools developer-tools testing cli cpp c ld-preload time-mocking reproducible-builds system-call-interception faketime command-line linux macos
2 sources
- readme: https://github.com/wolfcw/libfaketime · fetched 2026-08-28 · bd8336b8c6e0
- homepage: https://github.com/wolfcw/libfaketime · fetched 2026-08-29 · 2aa0d8eea28c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| wolfcw/libfaketime | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="wolfcw/libfaketime")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem