TimeContinuum
No description available
Install / Use
/learn @Innmind/TimeContinuumREADME
TimeContinuum
[!IMPORTANT] This project has been replaced by
innmind/time
This library allows you to handle time down to the millisecond. The point was to also be explicit for every component of dates, this is why every php magic strings have been converted into objects.
All objects are immutable.
Installation
composer install innmind/time-continuum
Usage
use Innmind\TimeContinuum\{
Clock,
PointInTime,
Format,
};
use Innmind\Immutable\Attempt;
$clock = Clock::live();
$now = $clock->now(); // return an instance of PointInTime
echo $now->toString(); // 2016-10-11T12:17:30.123456+02:00
$epoch = $clock->at(
'1970-01-01T00:00:00.000000+00:00',
Format::iso8601(),
); // Attempt<PointInTime>
Here we reference 2 points in time, the first is the exact moment we call now down to the microsecond and the second one is the epoch time.
The method at() accepts any string that is allowed by \DateTimeImmutable.
Documentation
Full documentation is available at https://innmind.org/TimeContinuum/.
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
