Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hand-wrapped the datetimeutils module, fixes #1640 #1812

Merged
merged 12 commits into from
Jan 31, 2022
53 changes: 0 additions & 53 deletions pyintegration/deephaven2/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import jpy

_JQueryConstants = jpy.get_type("io.deephaven.util.QueryConstants")
_JTimeZone = jpy.get_type("io.deephaven.time.TimeZone")


class SortDirection(Enum):
Expand Down Expand Up @@ -94,55 +93,3 @@ class SortDirection(Enum):
""" Minimum positive value of type double. """


class TimeZone(Enum):
""" A Enum for known time zones. """
NY = _JTimeZone.TZ_NY
""" America/New_York """
ET = _JTimeZone.TZ_ET
""" America/New_York """
MN = _JTimeZone.TZ_MN
""" America/Chicago """
CT = _JTimeZone.TZ_CT
""" America/Chicago """
MT = _JTimeZone.TZ_MT
""" America/Denver """
PT = _JTimeZone.TZ_PT
""" America/Los_Angeles """
HI = _JTimeZone.TZ_HI
""" Pacific/Honolulu """
BT = _JTimeZone.TZ_BT
""" America/Sao_Paulo """
KR = _JTimeZone.TZ_KR
""" Asia/Seoul """
HK = _JTimeZone.TZ_HK
""" Asia/Hong_Kong """
JP = _JTimeZone.TZ_JP
""" Asia/Tokyo """
AT = _JTimeZone.TZ_AT
""" Canada/Atlantic """
NF = _JTimeZone.TZ_NF
""" Canada/Newfoundland """
AL = _JTimeZone.TZ_AL
""" America/Anchorage """
IN = _JTimeZone.TZ_IN
""" Asia/Kolkata """
CE = _JTimeZone.TZ_CE
""" Europe/Berlin """
SG = _JTimeZone.TZ_SG
""" Asia/Singapore """
LON = _JTimeZone.TZ_LON
""" Europe/London """
MOS = _JTimeZone.TZ_MOS
""" Europe/Moscow """
SHG = _JTimeZone.TZ_SHG
""" Asia/Shanghai """
CH = _JTimeZone.TZ_CH
""" Europe/Zurich """
NL = _JTimeZone.TZ_NL
""" Europe/Amsterdam """
TW = _JTimeZone.TZ_TW
""" Asia/Taipei """
SYD = _JTimeZone.TZ_SYD
""" Australia/Sydney """
UTC = _JTimeZone.TZ_UTC
""" UTC """
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
#
""" This module supports exporting Deephaven data in the HTML format. """

import jpy

from deephaven2 import DHError
Expand All @@ -10,10 +12,10 @@


def to_html(table: Table) -> str:
""" Returns a printout of a table formatted as HTML. Limit use to small tables to avoid running out of memory.
""" Returns a table formatted as an HTML string. Limit use to small tables to avoid running out of memory.

Returns:
a String of the table printout formatted as HTML
a HTML string

Raises:
DHError
Expand Down
Loading