datetimeformat 0.1.0

A DateTime formatting library for D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

datetimeformat

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"
}

#Acknowledgments

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.

Authors:
  • Chris Mays
Dependencies:
none
Versions:
0.1.0 2016-Nov-11
~master 2016-Nov-11
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 6 downloads this week

  • 9 downloads this month

  • 5839 downloads total

Score:
1.0
Short URL:
datetimeformat.dub.pm