程序包 weka.core

类 Debug.Timestamp

java.lang.Object
weka.core.Debug.Timestamp
所有已实现的接口:
Serializable, RevisionHandler
封闭类:
Debug

public static class Debug.Timestamp extends Object implements Serializable, RevisionHandler
A class that can be used for timestamps in files, The toString() method simply returns the associated Date object in a timestamp format. For formatting options, see java.text.SimpleDateFormat.
版本:
$Revision: 7519 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • DEFAULT_FORMAT

      public static final String DEFAULT_FORMAT
      the default format
      另请参阅:
  • 构造器详细资料

    • Timestamp

      public Timestamp()
      creates a timestamp with the current date and time and the default format.
    • Timestamp

      public Timestamp(String format)
      creates a timestamp with the current date and time and the specified format.
      参数:
      format - the format of the timestamp
      另请参阅:
    • Timestamp

      public Timestamp(Date stamp)
      creates a timestamp with the given date and the default format.
      参数:
      stamp - the associated date/time for the timestamp
    • Timestamp

      public Timestamp(Date stamp, String format)
      creates a timestamp with the given date and format.
      参数:
      stamp - the associated date/time for the timestamp
      format - the format of the timestamp
      另请参阅:
  • 方法详细资料

    • setFormat

      public void setFormat(String value)
      sets the format for the timestamp
      参数:
      value - the format string
      另请参阅:
    • getFormat

      public String getFormat()
      returns the current timestamp format
      返回:
      the current format
    • getStamp

      public Date getStamp()
      returns the associated date/time
      返回:
      the timestamp value
    • toString

      public String toString()
      returns the timestamp as string in the specified format
      覆盖:
      toString 在类中 Object
      返回:
      the timestamp as string
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision