Sim800l/Sim800l.cpp
String Sim800l::dateNet() {
  SIM.print(F("AT+CIPGSMLOC=2,1\r\n "));
  _buffer=_readSerial();

  if (_buffer.indexOf("OK")!=-1 ){
    return _buffer.substring(_buffer.indexOf(":")+2,(_buffer.indexOf("OK")-4));
  } else
  return "0";      
}
//Get the time  of the base of GSM
Get the time  of the base of GSM
Get the time of the base of GSM
String Sim800l::dateNet() {
  SIM.print(F("AT+CIPGSMLOC=2,1\r\n "));
  _buffer=_readSerial();
  if (_buffer.indexOf("OK")!=-1 ){
    return _buffer.substring(_buffer.indexOf(":")+2,(_buffer.indexOf("OK")-4));
  } else
  return "0";      
}
String Sim800l :: dateNet ( ) { SIM . print ( F ( " \r \n " ) ) ; _buffer = _readSerial ( ) ; if ( _buffer . indexOf ( " " ) != -1 ) { return _buffer . substring ( _buffer . indexOf ( " " ) + 2 , ( _buffer . indexOf ( " " ) - 4 ) ) ; } else return " " ; }
Get the time  of the base of GSM
Get the time of the base of GSM