Skip to content
A DateTime formatting library for D
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A DateTime formatting library for D

#Sample Usage

import datetimeformat;
import std.stdio;
import datetime;

void main()
    SysTime dt = SysTime(DateTime(2005, 9, 8, 16, 51, 9), dur!"msecs"(427));
    writeln(dt.format("yyyy-mm-dd HH:ii:ss.FFF")); //"2005-09-08 16:51:09.427"


This is based on Stewart's Utility Library datetime and datetimeformat.

It has been adapated to use Phobo's DateTime object instead of SUL's datetime, removing a dependency.

Notably missing in this version is the ability to have and utilize "collapsable" tags.

You can’t perform that action at this time.