Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Ruby
Date 53 codes
Home
Ruby
Date
1 Add and subtract six months using the and methods
2 Add week to Date and Time
3 Advent calendar
4 Calendar forms
5 Compare Time and DateTime
6 Convert a date to gm time, local time
7 Convert local (Eastern) time to Pacific time
8 Convert second to date
9 Converting Between Time and DateTime Objects
10 Counting the Days Since an Arbitrary Date
11 Create a year based on the Julian day with the jd class method
12 Create DateTime object with new method
13 Date parse
14 Date parse(2907)
15 Date strptime
16 Date strptime with format %A, %B %d, %Y
17 Date strptime with format %d%m%y
18 Date strptime with format %m%d%Y
19 DateTime civil
20 DateTime offset
21 DateTime parse
22 DateTime strptime with format %m-%d-%Y %H
23 DateTime strptime with format %m-%d-%Y %I
24 Doing Date Arithmetic
25 Doing DateTime Arithmetic
26 Find the Gregorian day with gregorian
27 Get the Julian day (days from January 1, 4713 B C , starting from 0) with the jd instance method
28 In England, 2 Sep 1752 was immediately followed by 14 Sep 1752
29 In Italy, 4 Oct 1582 was immediately followed by 15 Oct 1582
30 Leap year day
31 Local offset
32 Minus DateTime by day
33 Minus one DateTime from another
34 Move DateTime
35 Next finds the next day but does not change date in-place
36 Offset a date
37 Parsing Times and Dates
38 Printing a Date
39 Remaining days
40 Require date
41 Subtract 61 days from a date
42 The astronomical Julian day is available via ajd
43 The current date and time
44 The Date Class
45 The modified Julian day (days since November 17, 1858) with mjd
46 Time zero for the date library
47 To see the difference between Julian and Gregorian dates (there is a difference of more than 10 days), find the Julian day with the j
48 Try different formats
49 Use expression substitution to show the date in a user-specified format
50 Using the upto method, add the same amount of days back, showing the dates as you progress along
51 Whats the next day
52 With Dates downto method, count down five days, displaying each date as you go (this makes in-place changes to the date)
53 With the today class method, you can create a date based on todays date