MediaWiki has a time implementation in MessagesXx.php and the Language class. Best create a bugzilla: issue.
Read the code, luke: http://translatewiki.net/w/i.php?title=Special%3ATranslate&taction=translate&group=core&language=he&limit=1000&task=optional#msg_seconds-abbrev