Scenario - lets say an iphone was purchased from a highstreet mobile (o2 etc) shop a few months ago but the sealed box was never opened

Question - What are the timeframes for the warranty?

I expect the mobile company to say 12 months from date of purchase, but is the apple warranty different? i.e. does this start from date of registration?