RelativeTime function written