This again depends on the individual. Some skaters can skate rails within a few hours of practice, while others may take days or weeks to master the technique.
The best way to learn is by practicing and never giving up!