If I set an alarm and I turn off my iPhone, the alarm doesn't ring.
Correct, since off means off. Some phones include two off settings - completely off and partially off, which is a lower power saving setting. The partially off setting allows for an alarm to sound. The completely off setting does not. The iPhone includes one off setting - completely off.
Is it possible to have on iPhone an app that allows this function ?
Not with a 3rd party app. 3rd party apps do not have access to private iPhone APIs which such an app would require.
You want the iPhone powered off during the night I assume for what purpose - to not receive calls, SMS/MMS, or hear any alert sounds such as when new email has been received? If so, you can accomplish the same by turning on Airplane mode instead of turning your iPhone off. This is a very low power saving mode as well since all iPhone radios are off - no calls can be received, the same for SMS/MMS, and the same for email, but an alarm will sound.
I use my iPhone 4 as an alarm every morning. At first, I just left the phone on and plugged in at the wall, but had all sounds active to be sure I heard the alarm the next morning. That was annoying because when friends posted to Facebook at 2 AM, I heard the notification sound. That's when I had an 'aha' moment and now use the little switch on the side of the phone, above the volume up and down buttons. I have the phone on silent but it knows to sound the alarm when I need it. It uses whatever sound you chose. Just let me know when it can wake you up with a playlist from you music library instead of a ringtone! Hope this helps.
Turning the phone to airplane mode is what I have to do as silent mode doesn't do the job due the the vibration noise being loud (not a bad thing).
What would be nice is an App that you can set times between which it shuts off all sounds and vibrations to all messages/alerts but enables the alarm and recieve calls to work (or any combination u want)
Or simply three home clicks sets this mode on and then three to off.
Do we have anyone out there that could do this?
Yeah I know but I like it on when at work but don't want to turn it off and on every day.
It doesn't seem like a major effort to me. Perhaps I'm just not as busy as you.
Submit your feedback and requests to Apple: