<s> import arrow <EOL> from st2common . util import isotime <EOL> from st2actions . runners . pythonrunner import Action <EOL> class GetWeekBoundariesTimestampsAction ( Action ) : <EOL> def run ( self , date = None ) : <EOL> if date : <EOL> dt = isotime . parse ( date ) <EOL> dt = arrow . get ( dt ) <EOL> else : <EOL> dt = arrow . utcnow ( ) <EOL> start_timestamp = dt . floor ( '<STR_LIT>' ) . timestamp <EOL> end_timestamp = dt . ceil ( '<STR_LIT>' ) . timestamp <EOL> return start_timestamp , end_timestamp </s>
