Map Changer Vs Time Help!

I have two maps one is day and one is night. I thought it would be cool to have a script where it would change the Map depending on the server time. Ie

if time > 18 or time < 6 then
map change night
Else if time > 6 and time < 18
Map change day
End

If someone could write this I would be very happy

[lua]
function ChangeToDay()
game.ConCommand(“changelevel flatgrass”)
end

function ChangeToNight()
game.ConCommand(“changelevel gm_construct”)
end

schedule.Add(“ChangeMapDay”, ChangeToDay, 00, 00, 8, nil, nil, nil, nil)
schedule.Add(“ChangeMapNight”, ChangeToNight, 00, 00, 18, nil, nil, nil, nil)
[/lua]

Try that but unsure if it will work. Change maps to your liking.
I cannot test myself due to steam updating.

Just incase the above didnt know, he needs to add "'s and ,'s. Like this:
[lua]
function ChangeToDay()
game.ConCommand(“changelevel”, “flatgrass”)
end

function ChangeToNight()
game.ConCommand(“changelevel”, “gm_construct”)
end

schedule.Add(“ChangeMapDay”, ChangeToDay, 00, 00, 8, nil, nil, nil, nil)
schedule.Add(“ChangeMapNight”, ChangeToNight, 00, 00, 18, nil, nil, nil, nil)
[/lua]

This doesnt protect against server crashing does it? Like if the server crashes it wont change it because schedule is an event that is called AT that time and not DURING that time…