It is currently Sat May 03, 2025 6:30 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
Offline
 Post subject: SGF TimeStamps
Post #1 Posted: Thu Dec 12, 2013 8:47 pm 
Beginner
User avatar

Posts: 5
Liked others: 0
Was liked: 2
KGS: RapaNui
Hello to all,

I would like to request some help, please
I would like to know:

1 - why some sgf files have timestamps and other don't?
2 - and how I can access them? Any way of getting inside the SGF code? how to? and what to use?

Thank you,
good Christmas for all,
Regards

Top
 Profile  
 
Offline
 Post subject: Re: SGF TimeStamps
Post #2 Posted: Thu Dec 12, 2013 8:57 pm 
Honinbo

Posts: 9552
Liked others: 1602
Was liked: 1712
KGS: Kirby
Tygem: 커비라고해
Just open the file in a text editor, such as notepad. SGF files have a structure to them, and different elements mean different things. Some SGF files have a time and date, because those elements are included. If you remove them, they don't show up. Many SGF editors allow you to edit various properties like game info, without resorting to a text editor, but with a text editor you can see anything.

The basics of the standard (there are different standard versions, actually) can be seen here:
http://www.red-bean.com/sgf/go.html
http://www.red-bean.com/sgf/sgf4.html
http://www.red-bean.com/sgf/properties.html

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: SGF TimeStamps
Post #3 Posted: Thu Dec 12, 2013 9:27 pm 
Beginner
User avatar

Posts: 5
Liked others: 0
Was liked: 2
KGS: RapaNui
thank you!

Top
 Profile  
 
Offline
 Post subject:
Post #4 Posted: Fri Dec 13, 2013 1:07 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
RapaNui, CGoban3 saves the timestamps in the SGF and displays them when you replay the game.

Top
 Profile  
 
Offline
 Post subject: Re:
Post #5 Posted: Fri Dec 13, 2013 9:33 am 
Beginner

Posts: 15
Liked others: 0
Was liked: 3
EdLee wrote:
RapaNui, CGoban3 saves the timestamps in the SGF and displays them when you replay the game.

Is there a standard? What format do RapaNui, CGoban3 use? I see DT[..] fields such as

2013-08-13 22:31 - 2013-08-13 22:53,
Fri Oct 11 20:59:58 GMT+08:00 2002
2010071315:25
1995/07/08 23:55:23 UT
20100222 16:05
2011-04-22 17:31
2003年3月26日(水) 1:00P-M-~6:30P-M
20100527 [11:17\]
2007/1/30 下午 10\:08\:47

SGF FF[4] mandates DT[2013-08-13], but seems to have no facilities for timestamps

Top
 Profile  
 
Offline
 Post subject: Re: SGF TimeStamps
Post #6 Posted: Fri Dec 13, 2013 3:09 pm 
Dies with sente

Posts: 75
Liked others: 7
Was liked: 18
Rank: EGF 5k
KGS: jug
DGS: jug, 4k
RapaNui wrote:
I would like to know:
1 - why some sgf files have timestamps and other don't?
2 - and how I can access them? Any way of getting inside the SGF code? how to? and what to use?

ad 1)
The time-info in game-records is optional, but I think the most likely reason is, that the time-information is poorly designed in the SGF-specs (basic properties: http://www.red-bean.com/sgf/properties.html ):
  • the TM-property holds the main time-limit in seconds, e.g. TM[1500]
  • the OT-property holds the overtime in free-text, e.g. OT[5x10 byo-yomi] or OT[25 moves / 10 min]
  • the BL/WL-property is used for the time left for the Black/White-player after a move has been played in secs (main-time or byo-yomi)
  • the OB/OW-property is used for the moves left for the Black/White-player after a move has been played in secs (in byo-yomi)

There are lot of flaws with the time stored in a SGF:
  • The format for overtime (OT) is free text, so the SGF-clients have to "guess" what it could mean (or what language it is in)
  • The allowed ranges are missing or implementation-hints for client-developers, that also turn-based servers should be supported where time-limits or time-left can span long periods of time like days, weeks or months. A lot of clients may have problems showing larger time-data.

ad 2)
use a text-editor on the SGF and search for the mentioned properties.

zorq wrote:
Is there a standard? What format do RapaNui, CGoban3 use? I see DT[..] fields such as [...] DT[2013-08-13], but seems to have no facilities for timestamps

The DT-property is used to indicate the dates when the game was played, not when certain moves have been played or which time-system has been used. So a game on a turn-based server can last from 2013-08-01 till 2013-12-20 for example. Time-properties are specified with the properties mentioned above.

Sources:
- SGF-specs version 4: http://www.red-bean.com/sgf/

Top
 Profile  
 
Offline
 Post subject: Re: SGF TimeStamps
Post #7 Posted: Fri Dec 13, 2013 8:05 pm 
Beginner
User avatar

Posts: 5
Liked others: 0
Was liked: 2
KGS: RapaNui
Thank you for your answers.
I really appreciate all your trouble in answering me!
I have no more doubts now... :)
merry christmas

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group