def get_to_timestamp_base(base):
 if (base < FreqGroup.FR_BUS):
  return FreqGroup.FR_DAY
 if (FreqGroup.FR_HR <= base <= FreqGroup.FR_SEC):
  return FreqGroup.FR_SEC
 return base

def get_to_timestamp_base ( base ) : if ( base < FreqGroup . FR_BUS ) : return FreqGroup . FR_DAY if ( FreqGroup . FR_HR <= base <= FreqGroup . FR_SEC ) : return FreqGroup . FR_SEC return base
return frequency code group used for base of to_timestamp against frequency code .