Can I ask for time off work if my partner has had a miscarriage?

What are the rules?