static void writeEpochSec(long epochSec,DataOutput out) throws IOException {
  if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) {
    int store=(int)((epochSec + 4575744000L) / 900);
    out.writeByte((store >>> 16) & 255);
    out.writeByte((store >>> 8) & 255);
    out.writeByte(store & 255);
  }
 else {
    out.writeByte(255);
    out.writeLong(epochSec);
  }
}

static void writeEpochSec ( long epochSec , DataOutput out ) throws IOException { if ( epochSec >= - 4575744000L && epochSec < 10413792000L && epochSec % 900 == 0 ) { int store = ( int ) ( ( epochSec + 4575744000L ) / 900 ) ; out . writeByte ( ( store > > > 16 ) & 255 ) ; out . writeByte ( ( store > > > 8 ) & 255 ) ; out . writeByte ( store & 255 ) ; } else { out . writeByte ( 255 ) ; out . writeLong ( epochSec ) ; } }
writes the state to the stream .
