This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
PerfectTime.js | ||
| |
README |
README
For usage, see: http://mikewest.org/archive/son-of-perfecttime-the-validationator Below is how this version differs from Mike's version 1.1. * Requires jQuery. There is a prototype.js 1.6+ branch, if you're interested. Its only for one $() call, so change it if you need something else. * Usage: $('.dtstart').perfectTime('%Y-%m-%d %H:%M.%S %Z') * In place of .dtsart you can have any selector. * If you don't pass in a format, it will use the default: %d %b %Y at %H:%M * ISO 8601 is not completely supported, but slightly improved. You can use a space instead of T. The formats accepted by this script are the following: YYYY YYYY-MM YYYY-MM-DD YYYY-MM-DDTHH:MM YYYY-MM-DD HH:MM YYYY-MM-DDTHH:MM[+-]HHMM YYYY-MM-DD HH:MM[+-]HHMM YYYY-MM-DDTHH:MM:SS.sZ YYYY-MM-DD HH:MM:SS.sZ YYYY-MM-DDTHH:MM:SS YYYY-MM-DD HH:MM:SS YYYY-MM-DDTHH:MM:SS.s YYYY-MM-DD HH:MM:SS.s YYYY-MM-DDTHH:MM:SS.s[+-]HHMM YYYY-MM-DD HH:MM:SS.s[+-]HHMM YYYY-MM-DDTHH:MM:SS.sZ YYYY-MM-DD HH:MM:SS.sZ








