10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
|
function hours_without_zeroes(dt)
|
||
|
{
|
||
|
return dt.getHours();
|
||
|
}
|
||
|
|
||
|
dt = new Date();
|
||
|
console.log(hours_without_zeroes(dt));
|
||
|
|
||
|
dt = new Date(1989, 10, 1);
|
||
|
console.log(hours_without_zeroes(dt));
|