Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1036249 // PricePoint - price + timestamp

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (9983L) is out of date.

1  
srecord PricePoint(long timestamp, double price) {
2  
  toString {
3  
    ret formatPrice(price) + " @ " + formatLocalDateWithSeconds(timestamp);
4  
  }
5  
  
6  
  long time aka timestamp() { ret timestamp; }
7  
  double price() { ret price; }
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036249
Snippet name: PricePoint - price + timestamp
Eternal ID of this version: #1036249/8
Text MD5: a02e3c2722a48350a26a48be03133519
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-01-21 23:43:38
Source code size: 234 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 154 / 232
Version history: 7 change(s)
Referenced in: [show references]