索引
- PersistentCategoryKeyValueContent
- ITreeContent
- ItemContent
- InstantaneousTreeContent
- ICodedTreeContent
- IKeyValueContent
- InstantaneousCodedTreeContent
- InstantaneousKeyValueContent
- IGlobalizationContent
- EntityUtil
- EntityStore
- ICategoryTreeContent
- ICategoryKeyValueContent
- ICodedCategoryTreeContent
- EntityJoin
- EntityCapsule
- CacheKeyValueContent
- CacheTreeContent
- ClassContent
- ProxySupport
- CacheCodedTreeContent
- Business
- ValidationSupport
- Validation
- IFinallyAspect
- Intercept
- InvokeContext
- IProxyLoader
- ProxyFactory
- IAspect
- IAroundAspect
- FinallyAspectSupport
- AroundAspectSupport
- AOPUnknownBreak
- AOPBreak
- AOPTransactionBreak
- GridView
- JSONOut
- Galleria
- package-frame
- package-summary
- package-tree
- package-use
- LoginSessionListener
- ApplicationContextListener
- TransactionFilter
- FileUploader.FileUploaderStatus
- FileUploader
- CharacterEncodingFilter
- ImageRedirectFilter
- FileUploader.FileUploaderListener
- PrintWriterDecorator
- IFormatter
- TokenPool
- HttpServletResponseDecorator
- HttpServletRequestDecorator
- ICryptography
- DynamicSecret
- CryptographySupport
- OrmTransactionContext
- OrmPersistenceFactory
- OrmPersistenceCollection
- CryptographyFactory
- OrmContexts
- OrmDatabaseTransaction
- OrmDefinitionContext
- OrmManipulationQueryContext
- OrmPersistence
- IOrmPersistence
- IOrmManipulationQuery
- IOrmTransaction
- Order
- OrmConstant
- IOrmDefinition
- DatabaseHelperSupport
- Entity
- FieldProperty
- Fields
- XMLFormatter
- SetList
- AggregateField
- Condition
- DatabaseHelper
- JSONFormatter
- ISetList
- MapList
- Names
- NameValue
- ServiceRouter
- StreamView
- TextView
- XMLView
- IMapList
- ServiceController
- RouterSupport
- Router
- RedirectView
- MVCRenderException
- MVCNotFoundException
- MVCInternalException
- JSPRouter
- JSPView
- Model
- MVCException
- MVCInstantiationException
- IModel
- IRouter
- IView
- JSONView
- JSPController
- ImageView
- IController
- HTMLView
- ForwardView
- Controller
- MailSender
- RandomGenerator
- ReflectionUtil
- ReservedWord
- QRCode
- LoggerSupport
- ChinesePinYin
- HttpExecuter
- IdCardValidator
- ImageValidateCode
- User32.RECT
- User32.SIZE
- KCLInformation
- IAppender
- Logger
- User32.POINT
- User32
- Identify
- FacadeDirectory
- FacadeIO
- TextReader
- TextWriter
- LocalizationLanguage
- Convert
- Comments
- WinFormInstallationBuilder
- WebFormInstallationBuilder
- PersistentTreeContent
- ServiceBusiness
- TreeContent
- CallingOnly
- CodeBuilder
- PersistentCategoryTreeContent
- PersistentCodedCategoryTreeContent
- PersistentCodedTreeContent
- PersistentGlobalizationContent
- PersistentKeyValueContent
- XMLDocumentEx
- WxOAuthAdapter
- WxPayAdapter
- WxSupport
- KCLConfig
- XMLDocument
- WxOAthAdapter
- WxAdapterSupport
- WxBasicAdapter
- WxMenuAdapter
- WxMessageDispatcher
- IWxReceivedListener
- TreeNode
- TreeLeaf
- Tree
- Train
- IWxEventListener
- ITreeNode
- MapQueue
- DateTime
- Forest
- ICache
- IMapQueue
- ThreadUnsafe
- UnimplementedException
- Untested
- ThreadSafe
- Cache
- MultiThreadUnitTest
- Debugger
- IUnitTest
- UnitTest
- Tested
- UploadView
- TreeView
- Paging
- StringHelper
- RichText
- Video
- Music
- ListView
- Label
- KCLTag
  com.knots.kcl.util 
 Class DateTime
 java.lang.Objectcom.knots.kcl.util.DateTime
- public class DateTime 
- extends java.lang.Object
Convert date time.
| Field Summary | |
|---|---|
|  long | time | 
| Constructor Summary | |
|---|---|
| DateTime() | |
| DateTime(int unixTime)The number of seconds since January 1, 1970, 00:00:00 GMT. | |
| Method Summary | |
|---|---|
|  int | getDay()Return current day | 
|  int | getHour()Return current hour | 
|  int | getMinute()Return current minute | 
|  int | getMonth()Return current month | 
|  int | getSecond()Return current second | 
|  int | getYear()Return current year | 
| static DateTime | now()Return DateTime object with current time | 
| static DateTime | prase(java.lang.String dateTime)Parses text from the beginning of the given string to produce a date. | 
| static DateTime | prase(java.lang.String format, java.lang.String dateTime)Parses text from the beginning of the given string to produce a date. | 
|  java.lang.String | toShortDateString()Return string using the 'yyyy/MM/dd' pattern and the default date format symbols for the default locale. | 
|  java.lang.String | toString() | 
|  java.lang.String | toString(java.lang.String format)Return string using the given pattern and the default date format symbols for the default locale. | 
|  int | toUnixTime()Return the number of seconds since January 1, 1970, 00:00:00 GMT. | 
|  long | toUnixTimeInMillis()The number of milliseconds since January 1, 1970, 00:00:00 GMT. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
time
public long time
| Constructor Detail | 
|---|
DateTime
public DateTime()
DateTime
public DateTime(int unixTime)
- The number of seconds since January 1, 1970, 00:00:00 GMT. 
| Method Detail | 
|---|
toUnixTime
public int toUnixTime()
- Return the number of seconds since January 1, 1970, 00:00:00 GMT. 
toUnixTimeInMillis
public long toUnixTimeInMillis()
- The number of milliseconds since January 1, 1970, 00:00:00 GMT. 
toString
public java.lang.String toString()
- Overrides:
- toStringin class- java.lang.Object
 
toShortDateString
public java.lang.String toShortDateString()
- Return string using the 'yyyy/MM/dd' pattern and the default date format symbols for the default locale. 
toString
public java.lang.String toString(java.lang.String format)
- Return string using the given pattern and the default date format symbols for the default locale. 
getYear
public int getYear()
- Return current year 
getMonth
public int getMonth()
- Return current month 
getDay
public int getDay()
- Return current day 
getHour
public int getHour()
- Return current hour 
getMinute
public int getMinute()
- Return current minute 
getSecond
public int getSecond()
- Return current second 
now
public static DateTime now()
- Return DateTime object with current time 
prase
public static DateTime prase(java.lang.String dateTime) throws java.text.ParseException
- Parses text from the beginning of the given string to produce a date. The method may not use the entire text of the given string. - Throws:
- java.text.ParseException
 
prase
public static DateTime prase(java.lang.String format, java.lang.String dateTime) throws java.text.ParseException
- Parses text from the beginning of the given string to produce a date. The method may not use the entire text of the given string. - Throws:
- java.text.ParseException
 

 
  
  
 
 
 

