Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon SimpleDB Developer Guide

You're reading from  Amazon SimpleDB Developer Guide

Product type Book
Published in Jun 2010
Publisher Packt
ISBN-13 9781847197344
Pages 252 pages
Edition 1st Edition
Languages
Toc

Table of Contents (16) Chapters close

Amazon SimpleDB Developer Guide
Credits
Foreword
About the Authors
About the Reviewers
1. Preface
1. Getting to Know SimpleDB 2. Getting Started with SimpleDB 3. SimpleDB versus RDBMS 4. The SimpleDB Data Model 5. Data Types 6. Querying 7. Storing Data on S3 8. Tuning and Usage Costs 9. Caching 10. Parallel Processing

Storing date values


Date values are much more difficult to compare lexicographically, as the formats are so different and there is no guarantee that the significant units will be in the right position in the date string. It is possible to store the date as the number of epoch seconds since January 1, 1970. This will work but is a bit cumbersome, as the stored number is not at all readable and you will need to convert it to another meaningful date format to make any sense of it.

Note

A better solution is to use a date format that is friendly to a lexicographical comparison—ISO8601.

ISO8601 is a format that is also being used by some of the Amazon Web Services. It is an international standard for representing date formats in an unambiguous way while making comparisons between two dates simpler. The date and time values are organized from the most to the least significant components: year, month (or week), day, hour, minute, second, and fraction of second. The time representation possesses a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}