82.367
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
local p = {} | local p = {} | ||
local c = require( "Module:Common" ) | local c = require( "Module:Common" ) | ||
local str = require("Modul:String") | |||
function p.GetMonthday(frame) | function p.GetMonthday(frame) | ||
| Zeile 11: | Zeile 12: | ||
function get_monthday(date) | function get_monthday(date) | ||
months=getMonthList() | months=getMonthList() | ||
date_array=split(date, "/") | date_array=str.split(date, "/") | ||
if isEmpty(date_array[1]) then | if isEmpty(date_array[1]) then | ||
-- When datestring contained no "/" | -- When datestring contained no "/" | ||
mda = split(date_array[0]) | mda = str.split(date_array[0]) | ||
if isEmpty(mda[1]) then | if isEmpty(mda[1]) then | ||
-- When dateformat is just YYYY | -- When dateformat is just YYYY | ||
| Zeile 36: | Zeile 37: | ||
function get_year(date) | function get_year(date) | ||
date_array=split(date, "/") | date_array=str.split(date, "/") | ||
if isEmpty(date_array[1]) then | if isEmpty(date_array[1]) then | ||
-- When datestring contained no "/" | -- When datestring contained no "/" | ||
mda = split(date_array[0]) | mda = str.split(date_array[0]) | ||
if isEmpty(mda[1]) then | if isEmpty(mda[1]) then | ||
-- When dateformat is just YYYY | -- When dateformat is just YYYY | ||