array(['2013-07-22T02:59:59.000000000+0900',
    '2013-07-22T01:59:59.000000000+0900',
    '2013-07-21T23:59:59.000000000+0900',
    '2013-07-21T05:59:59.000000000+0900',
    '2013-07-21T05:59:59.000000000+0900',
    '2013-07-21T05:59:59.000000000+0900',
    '2013-07-20T10:59:59.000000000+0900',
    '2013-07-20T10:59:59.000000000+0900',
    '2013-07-20T09:59:59.000000000+0900',
    '2013-07-20T09:59:59.000000000+0900',
    '2013-07-20T09:59:59.000000000+0900',
    '2013-07-20T08:59:59.000000000+0900'], dtype='datetime64[ns]')
How to move the datetime to end of day, week or hour