Views | Rating | Comments | Date | Alphabetic
Results 1-2 of 2
964 views, 0/5 rating, No comments yet
functions, javascript, php
Most developer languages give you a file's size in bytes. With these methods you can convert them to readable amounts and units.
334 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.