implementation of Clock.string