Write some software about time conversion in Java.

En curso Publicado hace 7 años Pagado a la entrega
En curso Pagado a la entrega

Must be completed in Java. Write some functions in that will convert time from BASIC_FORMAT to ISO_FORMAT, or return some other required data. (Detail below)

Many of these functions will either take as input or return as output (or both!) date­time strings in the following formats:

Example 1

Format Name: Basic Format

Format String: YYYY­MM­DD h:mma

Example: 2015­01­07 1:29PM

Example 2

Format Name: ISO_FORMAT

Format String: YYYY­MM­DD'T'hh:mm:[login to view URL]’Z’

Example: 2014­02­09T02:00:00.000Z

Function Specifications:

FUNCTION # 1:

one_hour_earlier( time:String ) -> String:

Accepts a date­time string assumed to be in the BASIC_FORMAT. Returns a BASIC_FORMAT date­time string representing one hour earlier.

Example # 1:

Parameter Value: “2015­01­07 2:29PM”

Return Value: “2015­01­07 1:29PM”

Example # 2:

Parameter Value: “2015­01­01 12:34AM”

Return Value: “2014­12­31 11:34PM”

FUNCTION # 2:

is_central_time()-> boolean

Returns true if the computer is operating in the Central time zone or false otherwise.

FUNCTION # 3:

to_calendar_format( time:String )->String:

Accepts a date­time string in BASIC_FORMAT and returns a version of the same time in Greenwich Mean Time (GMT) in ISO_FORMAT. The result will vary based on the time zone the computer is operating in. For reference note that GMT is 8 hours ahead of PST and 5 hours ahead of EST.

Example # 1:

Parameter Value: “2014­02­08 6:00PM"

Time Zone: PST

Return Value: "2014­02­09T02:00:00.000Z"

Example # 2:

Parameter Value: "2014­02­08 6:00PM"

Time Zone: MST

Return Value: "2014­02­09T01:00:00.000Z"

Java Arquitectura de software

Nº del proyecto: #11975933

Sobre el proyecto

2 propuestas Proyecto remoto Activo hace 7 años

2 freelancers están ofertando un promedio de $35 por este trabajo

mahershahmeer

Hi there! I read your requirements, And I'm able work on all the Methods you described in the description. But Your budget seems low. So I made a bid with what should be the budget. I'd love to handle this project. Más

$40 USD en 1 día
(125 comentarios)
6.1
ShakaibArsalan7

Hey an experience java developer is here i have been working on java for two years and know the nitty-gritty stuff of java i have worked on java projects before so feel free to contact me over chat to discuss mor Más

$30 USD en 1 día
(10 comentarios)
3.1