MCPcopy Create free account
hub / github.com/6dylan6/jdpro / GetDateTime

Function GetDateTime

function/sendNotify.js:1956–1987  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

1954}
1955
1956function GetDateTime(date) {
1957
1958 var timeString = "";
1959
1960 var timeString = date.getFullYear() + "-";
1961 if ((date.getMonth() + 1) < 10)
1962 timeString += "0" + (date.getMonth() + 1) + "-";
1963 else
1964 timeString += (date.getMonth() + 1) + "-";
1965
1966 if ((date.getDate()) < 10)
1967 timeString += "0" + date.getDate() + " ";
1968 else
1969 timeString += date.getDate() + " ";
1970
1971 if ((date.getHours()) < 10)
1972 timeString += "0" + date.getHours() + ":";
1973 else
1974 timeString += date.getHours() + ":";
1975
1976 if ((date.getMinutes()) < 10)
1977 timeString += "0" + date.getMinutes() + ":";
1978 else
1979 timeString += date.getMinutes() + ":";
1980
1981 if ((date.getSeconds()) < 10)
1982 timeString += "0" + date.getSeconds();
1983 else
1984 timeString += date.getSeconds();
1985
1986 return timeString;
1987}
1988
1989function GetnickName() {
1990 return new Promise(async resolve => {

Callers 1

buildLastDespFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected