Top Description Inners Constructors Methods
org.jruby.javasupport.ext

public Class JavaTime

extends Object
Class Inheritance
Imports
org.joda.time.DateTime, .DateTimeZone, org.jruby.Ruby, .RubyModule, .RubyTime, org.jruby.anno.JRubyMethod, .JRubyModule, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Java::JavaTime package extensions.
Author
kares

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static DateTimeZone

Returns:

a (joda) date-time zone from Java time's zone id
convertZone
(final String id)

Convert a Java time zone to a JODA time zone.

public static void
private static RubyTime
toTime(ThreadContext context, int year, int month, int day, int hour, int min, int sec, int nano, DateTimeZone zone)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaTimeback to summary
public JavaTime()

Method Detail

convertZoneback to summary
private static DateTimeZone convertZone(final String id)

Convert a Java time zone to a JODA time zone.

Returns:DateTimeZone

a (joda) date-time zone from Java time's zone id

defineback to summary
public static void define(ThreadContext context)
toTimeback to summary
private static RubyTime toTime(ThreadContext context, int year, int month, int day, int hour, int min, int sec, int nano, DateTimeZone zone)
org.jruby.javasupport.ext back to summary

public Class JavaTime.Instant

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Java::JavaTime::Instant

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Instantback to summary
public Instant()

Method Detail

to_timeback to summary
public static IRubyObject to_time(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_time
org.jruby.javasupport.ext back to summary

public Class JavaTime.LocalDateTime

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Java::JavaTime::LocalDateTime

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LocalDateTimeback to summary
public LocalDateTime()

Method Detail

to_timeback to summary
public static IRubyObject to_time(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_time
org.jruby.javasupport.ext back to summary

public Class JavaTime.OffsetDateTime

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Java::JavaTime::OffsetDateTime

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OffsetDateTimeback to summary
public OffsetDateTime()

Method Detail

to_timeback to summary
public static IRubyObject to_time(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_time
org.jruby.javasupport.ext back to summary

public Class JavaTime.ZonedDateTime

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Java::JavaTime::ZonedDateTime

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ZonedDateTimeback to summary
public ZonedDateTime()

Method Detail

to_timeback to summary
public static IRubyObject to_time(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
name:to_time