All Projects → vjeantet → jodaTime

vjeantet / jodaTime

Licence: MIT license
Format and Parse date and time with joda layout

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to jodaTime

Date And Time
A Minimalist DateTime utility for Node.js and the browser
Stars: ✭ 99 (+47.76%)
Mutual labels:  time, date, format
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (-50.75%)
Mutual labels:  time, date, format
Gostradamus
Gostradamus: Better DateTimes for Go 🕰️
Stars: ✭ 148 (+120.9%)
Mutual labels:  time, date, format
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (-71.64%)
Mutual labels:  time, date, format
Translatedjs
Internationalization and localization for JavaScript and Node.js
Stars: ✭ 17 (-74.63%)
Mutual labels:  time, date, format
date-php
这是一个Javascript模仿PHP日期时间格式化函数,使用方法和PHP非常类似,有丰富的模板字符,并在原来的基础上增加了一些模板字符。 This is a date function that implement PHP in Javascript. It is very similar to PHP, has rich template characters, and enhances some template characters on the basis of the original.
Stars: ✭ 24 (-64.18%)
Mutual labels:  time, date, format
timelite
String date and time utilities 🕙
Stars: ✭ 17 (-74.63%)
Mutual labels:  time, date, format
Tinydate
A tiny (349B) reusable date formatter. Extremely fast!
Stars: ✭ 990 (+1377.61%)
Mutual labels:  time, date, format
Time Stamp
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
Stars: ✭ 104 (+55.22%)
Mutual labels:  time, date, format
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+2576.12%)
Mutual labels:  time, date
ptera
Ptera is DateTime library for Deno
Stars: ✭ 62 (-7.46%)
Mutual labels:  time, date
React Native Modal Datetime Picker
A React-Native datetime-picker for Android and iOS
Stars: ✭ 2,412 (+3500%)
Mutual labels:  time, date
Tail.datetime
A lightweight, translat- and configurable Open Source DateTime Picker, written in pure vanilla JavaScript!
Stars: ✭ 139 (+107.46%)
Mutual labels:  time, date
Moment Range
Fancy date ranges for Moment.js
Stars: ✭ 1,639 (+2346.27%)
Mutual labels:  time, date
Jiffy
Jiffy is a Flutter (Android, IOS and Web) date time package inspired by momentjs for parsing, manipulating, querying and formatting dates
Stars: ✭ 238 (+255.22%)
Mutual labels:  time, date
Chrono
Date and time library for Rust
Stars: ✭ 1,780 (+2556.72%)
Mutual labels:  time, date
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+2859.7%)
Mutual labels:  time, date
Date Fns Timezone
Parsing and formatting date strings using IANA time zones for date-fns.
Stars: ✭ 118 (+76.12%)
Mutual labels:  time, date
Date Picker
📅 Custom responsive date picker widget for Android, written in Kotlin.
Stars: ✭ 146 (+117.91%)
Mutual labels:  time, date
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-61.19%)
Mutual labels:  time, date

Go Reference Build Status Coverage Status Go Report Card

JodaTime

  • Format golang date time.Time with joda layout
  • Parse time with joda layout

reference : http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html

Usage

package main

import (
	"fmt"
	"time"

	"github.com/vjeantet/jodaTime"
)

func main() {
	date := jodaTime.Format("YYYY.MM.dd", time.Now())
	fmt.Println(date)

	dateTime, _ := jodaTime.Parse("dd/MMMM/yyyy:HH:mm:ss", "30/August/2015:21:44:25")
	fmt.Println(dateTime.String())
}

Format

 Symbol  Meaning                      Presentation  Examples
 ------  -------                      ------------  -------
 G       era                          text          AD
 C       century of era (>=0)         number        20
 Y       year of era (>=0)            year          1996

 x       weekyear                     year          1996
 w       week of weekyear             number        27
 e       day of week                  number        2
 E       day of week                  text          Tuesday; Tue

 y       year                         year          1996
 D       day of year                  number        189
 M       month of year                month         July; Jul; 07
 d       day of month                 number        10

 a       halfday of day               text          PM
 K       hour of halfday (0~11)       number        0
 h       clockhour of halfday (1~12)  number        12

 H       hour of day (0~23)           number        0
 k       clockhour of day (1~24)      number        24
 m       minute of hour               number        30
 s       second of minute             number        55
 S       fraction of second           number        978

 z       time zone                    text          Pacific Standard Time; PST
 Z       time zone offset/id          zone          -0800; -08:00; America/Los_Angeles

 '       escape for text              delimiter
 ''      single quote                 literal       '
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].