User:Guywan/Scripts/12HourFormat.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
Line 5:
* <code><nowiki>importScript("User:Guywan/Scripts/12HourFormat.js"); // Backling: [[User:Guywan/Scripts/12HoursFormat.js]]</nowiki></code>
*
* This script was originally authored by User:Bility, [[User:Bility/convert24hourtime.js]],.
* andConsiderable alteredcontributions by User:DannyS712, [[User:DannyS712/12Hours.js]], whose version I have forked.
* I have mainly streamlined the code and introduced more functionality.
* to make some minor changes.
*/
 
Line 58:
var time = text.substr(index - 2, 6);
// Will convert anything in the table matching the pattern "nndd:nndd," where nd is a digit.
if(time.match(/\d\d:\d\d,/))
{