Skip to content

I am ZTimestamp, a Magnitude, a point in time, an alternative to DateAndTime and TimeStamp

License

Notifications You must be signed in to change notification settings

glassdb/ztimestamp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZTimestamp

I am ZTimestamp.

I am a Magnitude.

I represent a point in time, a combination of a date and a time.

I am an alternative for DateAndTime and TimeStamp.
I have second precision and live in the UTC/GMT/Zulu timezone.
I use ISO/International conventions and protocols only.
I support some essential arithmetic.

I have an efficient internal representation:

jnd - the julian day number <SmallInteger>
secs - the number of seconds since midnight, the beginning of the day <SmallInteger>

Examples:

ZTimestamp now.
ZTimestamp fromString: '1969-07-20T20:17:40Z'.

There is some compatibility with existing, standard Chronology objects. I correctly parse representations with a timezone designator and can print a representation in arbitrary timezones.

(ZTimestamp fromString: DateAndTime now truncated printString) localPrintString.

Installation

The master branch of this fork mirrors the original repository with Travis tests enabled. The gemstone branch is tested against Gemstone2.4, Gemstone3.1, Gemstone3.2

This is a Pharo Smalltalk project using Monticello Filetree.

Build status

  • gemstone branch: gemstone branch
  • master branch (pharo): master branch (pharo)

Sven Van Caekenberghe, April, 2012. MIT Licensed.

About

I am ZTimestamp, a Magnitude, a point in time, an alternative to DateAndTime and TimeStamp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Smalltalk 98.6%
  • Shell 1.4%