You can book your train ticket till chart preparation time for that particular train (which is normally 4 hours before the scheduled departure of the train from the train starting station; For trains which start before 12 noon, the chart preparation is usually done on the previous night).