Class: Time

Inherits:
Object show all
Includes:
JamfRubyExtensions::Time::Utils
Defined in:
lib/jamf/ruby_extensions/time.rb

Overview

include the modules loaded above

Direct Known Subclasses

Jamf::Timestamp

Instance Method Summary collapse

Instance Method Details

#j_msecInteger Also known as: jss_msec Originally defined in module JamfRubyExtensions::Time::Utils

Returns the milliseconds of the Time.

Returns:

  • (Integer)

    the milliseconds of the Time

#to_j_dateString Also known as: to_jss_date Originally defined in module JamfRubyExtensions::Time::Utils

Returns the Time formatted for a plain JSS XML date element.

Returns:

  • (String)

    the Time formatted for a plain JSS XML date element

#to_j_epochInteger Also known as: to_jss_epoch Originally defined in module JamfRubyExtensions::Time::Utils

Returns The Time as a unix epoch with milliseconds appended.

Returns:

  • (Integer)

    The Time as a unix epoch with milliseconds appended

#to_j_utcString Also known as: to_jss_utc Originally defined in module JamfRubyExtensions::Time::Utils

Returns the Time formatted for a JSS UTC XML date element.

Returns:

  • (String)

    the Time formatted for a JSS UTC XML date element