Raspberry GPIO input examples?

Can someone supply example code of Raspberry PI GPIO usage? I want to build a condition based one button press and time of day to trigger a Zwave light.

Thanks in Advance

Calvin