It will be promulagated in the company ops manual and will follow the civil aviation law of that country.
In Oz, it was 8 hours bottle to throttle and you cannot be affected by alcohol or medication prior flight.
Think about it, would you want to be flown by someone who is hungover?