Skip to content

Instantly share code, notes, and snippets.

@wklm wklm/exc.fs
Created Jan 9, 2018

What would you like to do?
let parse (buffer : byte []) =
|> Async.AwaitTask
|> Some
with _ -> None

This comment has been minimized.

Copy link
Owner Author

wklm commented Jan 9, 2018

type Record = 
  { TimeStamp : string
    Open : float
    Close : float
    High : float
    Low : float
    Volume : float
    BaseVolume : float }
  member this.parseTimeStamp = 
    let success, date = this.TimeStamp |> System.DateTime.TryParse
    if success then Some date
    else None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.