ಮಾಡ್ಯೂಲ್:Citation/CS1/Date validation/sandbox: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ
Content deleted Content added
No edit summary |
No edit summary |
||
೪೨ ನೇ ಸಾಲು:
good2, tomorrow_ts = pcall( lang.formatDate, lang, 'U', 'today + 2 days' ); -- today midnight + 2 days is one second more than all day tomorrow
▲-- for wikis that do not use Western digits in their language scripts because lang.formatDate() returns a timestamp in the local script which tonumber() doesn't understand
else
return false; -- one or both failed to convert to unix time stamp
|