Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An ActionScript 3 library for working with and generating relative-date strings.
ActionScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
libs
src/main/actionscript/com/adobe/date
.actionScriptProperties
.flexLibProperties
.gitignore
.project
LICENSE
README.md

README.md

ActionScript Relative Date Library

An ActionScript 3 Library for working with and generating relative date strings.

Overview

An ActionScript 3 Library for working with and generating relative date strings (e.g. "two hours ago" instead of "Mon Jan 5 17:24:33 GMT-0700 2011").

This project was first mentioned in my blog post at http://blogs.adobe.com/charles/2011/05/relative-time-library-for-actionscript.html.

Features

The ActionScript Relative Date Library is a simple API (a single class, really). It takes two date objects and returns a string describing the difference in time in a human-readable form.

Dependencies

Reference

Usage

var relativeTime:String = RelativeDate.getRelativeDate(firstDate, secondDate);
var relativeTime:String = RelativeDate.getRelativeDateFromNow(someDate);

Demo

Documentation

You can find the full ASDocs for the project here.

Author

License

The ActionScript Relative Date Library is licensed under the Apache License, Version 2.0.

Something went wrong with that request. Please try again.