Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
2cc2ab89
Commit
2cc2ab89
authored
Nov 04, 2013
by
Mike Połtyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo in ActiveSupport::TimeWithZone example
parent
f79e1064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
API.md
API.md
+1
-1
No files found.
API.md
View file @
2cc2ab89
...
@@ -582,7 +582,7 @@ After that multiply the result by 1000:
...
@@ -582,7 +582,7 @@ After that multiply the result by 1000:
Time
.
now
.
to_i
*
1000
# => 1383582043000
Time
.
now
.
to_i
*
1000
# => 1383582043000
# ActiveSupport examples:
# ActiveSupport examples:
DateTime
.
now
.
to_i
*
1000
# => 1383582043000
DateTime
.
now
.
to_i
*
1000
# => 1383582043000
ActiveSupport
::
TimeZone
.
new
(
'Asia/Shanghai'
).
now
.
to_i
*
100
ActiveSupport
::
TimeZone
.
new
(
'Asia/Shanghai'
).
now
.
to_i
*
100
0
# => 1383582043000
# => 1383582043000
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment