once u build this clock in the command block (if u don't have one do /give[player name] 137)
then once u have the block put it by the specific rail then do /time set 0 for the time the sun will never go down. and this is something that can be only done in creative!