The Eight Mahayana Precepts are taken for twenty-four hours. It is especially good to take them on full and new moon days and on other Buddhist festival days.
Observing precepts for even such a short time has tremendous benefits: one accumulates a great amount of positive potential (merit) in a short time.