মডিউল:সময় আগে: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
+
 
সংশোধন
৫৩ নং লাইন:
 
-- Check that the entered timestamp is valid. If it isn't, then give an error message.
local noError, inputTime = pcall( lang.formatDate, lang, 'UxnU', convertString("en", args[1]), true )
if not noError then
return '<strong class="error">ত্রুটি: প্রথম প্যারামিটার একটি তারিখ বা সময় হিসেবে পার্স করা যাবে না।</strong>'
৫৯ নং লাইন:
 
-- Store the difference between the current time and the inputted time, as well as its absolute value.
local timeDiff = tonumber(convertString("en", lang:formatDate( 'UxnU', nil, true ))) - tonumber(convertString("en", inputTime))
local absTimeDiff = math.abs( timeDiff )