Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Time format conversion method based on Java

A technology of time format conversion and conversion method, which is applied in multi-programming devices, instruments, calculations, etc., can solve problems such as a large number of repeated codes, and achieve the effects of reducing repetition, enhancing versatility, and improving accuracy

Pending Publication Date: 2022-07-15
WUHAN HONGXIN TECH SERVICE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at at least one defect or improvement requirement of the prior art mentioned in the background technology, the present invention provides a Java-based time format conversion method to solve the technical problem that the same time processing code is written multiple times, resulting in a large number of repeated codes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Time format conversion method based on Java

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.

[0034] like figure 1 As shown, in one embodiment, a Java-based time format conversion method is provided, comprising the following steps of S1-S4:

[0035] S1. Call the method to pass parameters to obtain the time parameters that need to be processed.

[0036] S2. Determine whether the format of the time parameter conforms to the tractable format of the time format conversion tool.

[0037] The tractable format is "YYYY-MM-dd" o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a Java-based time format conversion method. The Java-based time format conversion method comprises the following steps: S1, acquiring a time parameter needing to be processed; s2, judging whether the format of the time parameter accords with an easy-to-process format of a time format conversion tool class or not; s3, if yes, calling a non-public conversion method of the time format conversion tool class for processing; if not, easy-to-process format conversion is carried out through a common conversion method of the time format conversion tool class, and then the non-common conversion method is called for processing; and S4, outputting the processed time of the expected format. According to the method, after the incoming information is compared with the pre-established information base, the key time information is extracted, and different time formats in various development environments are processed into target formats, so that the method can adapt to different development environments, the information extraction precision is improved, and the versatility of the tool class is enhanced.

Description

technical field [0001] The invention relates to the technical field of Java Web, in particular to a Java-based time format conversion method. Background technique [0002] At present, more and more urban management and office fields have begun to carry out intelligent management. For an intelligent management system, it often involves processing a lot of form data. In form data, time data is a crucial data. It is particularly important to process various time information in the background program. [0003] For the time conversion in the Java language, the method generally adopted in the prior art is that the programmer uses the original time class and writes multiple lines of code to process the time format as required. However, at present, the development of Java Web projects is becoming more and more mature, and the project volume is getting larger and larger. A project often requires multiple people to develop collaboratively, and the code will be written multiple times ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F9/50
CPCG06F8/38G06F9/5027
Inventor 张崴肖伟明黄晓艳钟卫为
Owner WUHAN HONGXIN TECH SERVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products