Class cmdConfig.DateTime

java.lang.Object
Enclosing class:
cmdConfig

public static class cmdConfig.DateTime
extends cmdConfig
Maintenance date and time of fiscal devices
  • Constructor Details

  • Method Details

    • getDateTime

      public java.lang.String getDateTime() throws FiscalException, java.io.IOException
      return Date and time in format: "DD-MM-YY hh:mm:ss DST"; throws IOException, FiscalException
      Throws:
      FiscalException
      java.io.IOException
    • getDate

      public java.lang.String getDate() throws java.io.IOException, FiscalException
      return Date in format: "DD-MM-YY"; throws IOException, FiscalException
      Throws:
      java.io.IOException
      FiscalException
    • getTime

      public java.lang.String getTime() throws java.io.IOException, FiscalException
      return Time in format: "hh:mm:ss DST" throws IOException, FiscalException
      Throws:
      java.io.IOException
      FiscalException
    • setDateTime

      public void setDateTime​(java.lang.String date, java.lang.String time) throws java.io.IOException, FiscalException, java.text.ParseException
      Set date and time The command can be executed only one time after daily Z report.

      param date Date in format: DD-MM-YY param time Time in format: hh:mm:ss DST throws IOException, FiscalException

      Throws:
      java.io.IOException
      FiscalException
      java.text.ParseException
    • setDateTime

      public void setDateTime​(java.lang.String dateTime) throws java.io.IOException, FiscalException, java.text.ParseException
      Set date and time The command can be executed only one time after daily Z report.

      param dateTime Date in format: DD-MM-YY hh:mm:ss DST throws IOException, FiscalException

      Throws:
      java.io.IOException
      FiscalException
      java.text.ParseException