Created
March 17, 2013 16:36
-
-
Save milktrader/5182328 to your computer and use it in GitHub Desktop.
Trying to get an Array{TimeStamp} to show nice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
show(io::IO, ts::TimeStamp) = println(ts.timestamp, " ", ts.value) | |
julia> var[1] | |
1971-12-31 102.09 | |
julia> var[1:2] | |
2-element TimeStamp Array: | |
1971-12-31 102.09 | |
1971-12-30 101.78 | |
1971-12-31 102.09 | |
1971-12-31 102.09 | |
1971-12-30 101.78 | |
1971-12-30 101.78 | |
## I'm not sure why a TimeStamp Array shows like this or how to only show the first two lines in this example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The mistake is not passing io to
println