Views | Rating | Comments | Date | Alphabetic
Results 1-2 of 2
1,064 views, 5/5 rating, No comments yet
actionscript, adobe, date, download, flash
Here's one way of calculating and displaying the difference between two dates in ActionScript. This example attempts to extend your knowledge of working with dates in ActionScript (and its cousin, JavaScript). It takes a date format as a string similar to PHP's date function.
98 views, 0/5 rating, No comments yet
date, functions, javascript, php
Displaying dates for a user can be a bit tricky. First, you have to take into consideration what time zone they are in and what date format they prefer. Also, some people consider it easier to calculate a relative date in their mind. An easy workaround to this mess is to display dates in a relative format, "2 hours ago", "5 months ago." The way this is done, is to take the difference of two Unix timestamps--virtually, seconds since January 1, 1970 00:00 UTC.