Bitcoin miners can construct the block header, including the timestamp, however they want, as long as it adheres to the consensus rules. The shift you describe is well inside the 2 hour timerange, so it can be done when setting out to mine the block. It cannot however be done once the block is mined as the timestamp is part of the header, which is hashed into the PoW, hence changing the timestamp would invalidate the proof of work.
Most miners however prefer to increase/decrease the timestamp in order to have a simple way to alter the header, thus more hashes to compute. This is sometimes called time-rolling and is performed on top of the nonce-rolling.
1In theory this is certainly possible - but they have the decide what timestamp they want before starting to mine. Is your question about theory or practice? – Pieter Wuille – 2013-08-07T21:13:39.970
1So the answer is yes --- For my question this is theory only. This doesn't really affect bitcoin but the coins that are using a moving average to calculate the difficulty. If the moving average is short enough and a miner have majority of hash power the miner could create a chain of blocks with 0s timestamp apart and mess up the difficulty. --- very unlikely though. – user6266 – 2013-08-07T22:08:49.993
1And also this means that you can not use the block timestamp as a random time function. -- thank you Pieter for you answer. – user6266 – 2013-08-07T22:17:05.123