How can I compare datetimes?

I want to generate pdfs from my database, from tickets. This pdfs are
meant to be generated and saved every Friday at an specific hour. How
can I do that?

John S. wrote:

I want to generate pdfs from my database, from tickets. This pdfs are
meant to be generated and saved every Friday at an specific hour. How
can I do that?

Create a cron job to do that?

I suppose with every rails request you could add something like
if Time.now > last_time_updated
or something

look into the Ruby Date class and Time class.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs