Jump to content

Module:Bengali Unix Timestamp

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by R1F4T (talk | contribs) at 06:57, 23 April 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.main(frame)
	local UNIX = tonumber(frame.args[1]) or os.time()
	local BN_UNIX = UNIX - 1744643600
	
	if BN_UNIX >= 0 then
		BN_UNIX = BN_UNIX + 21600
	else
		BN_UNIX = BN_UNIX - 21600
	end
	
	return BN_UNIX
end

return p