Timestamp.st
branchjv
changeset 17751 b2273fa8d59f
parent 17735 6a5bc05f696a
child 17757 73caeb68bf1f
equal deleted inserted replaced
17750:c0daefa427b0 17751:b2273fa8d59f
   887     ^TimestampISO8601Builder read: stringOrStream
   887     ^TimestampISO8601Builder read: stringOrStream
   888 
   888 
   889     "Created: / 16-06-2005 / 16:13:36 / masca"
   889     "Created: / 16-06-2005 / 16:13:36 / masca"
   890 ! !
   890 ! !
   891 
   891 
       
   892 
   892 !Timestamp methodsFor:'accessing'!
   893 !Timestamp methodsFor:'accessing'!
   893 
   894 
   894 day
   895 day
   895     "return the day-in-month of the receiver (1..31).
   896     "return the day-in-month of the receiver (1..31).
   896      For compatibility, use instances of Date for this."
   897      For compatibility, use instances of Date for this."
  1204      OperatingSystem bases its time upon. Since this is totally
  1205      OperatingSystem bases its time upon. Since this is totally
  1205      OS-dependent, do not interpret the value returned by this method.
  1206      OS-dependent, do not interpret the value returned by this method.
  1206      You can use it to add/subtract milliSeconds or get time deltas, though."
  1207      You can use it to add/subtract milliSeconds or get time deltas, though."
  1207 
  1208 
  1208     ^ self getMilliseconds
  1209     ^ self getMilliseconds
       
  1210 !
       
  1211 
       
  1212 asNative
       
  1213 	#swAdded.
       
  1214 	^self
  1209 !
  1215 !
  1210 
  1216 
  1211 asSeconds
  1217 asSeconds
  1212     "return the number of seconds elapsed since whatever time the
  1218     "return the number of seconds elapsed since whatever time the
  1213      OperatingSystem bases its time upon. Since this is totally
  1219      OperatingSystem bases its time upon. Since this is totally
  1662      Timestamp now utcSecondsSince1970
  1668      Timestamp now utcSecondsSince1970
  1663     "
  1669     "
  1664 ! !
  1670 ! !
  1665 
  1671 
  1666 
  1672 
       
  1673 
  1667 !Timestamp methodsFor:'visiting'!
  1674 !Timestamp methodsFor:'visiting'!
  1668 
  1675 
  1669 acceptVisitor:aVisitor with:aParameter
  1676 acceptVisitor:aVisitor with:aParameter
  1670 
  1677 
  1671     ^ aVisitor visitTimestamp:self with:aParameter
  1678     ^ aVisitor visitTimestamp:self with:aParameter
  2421 ! !
  2428 ! !
  2422 
  2429 
  2423 !Timestamp class methodsFor:'documentation'!
  2430 !Timestamp class methodsFor:'documentation'!
  2424 
  2431 
  2425 version
  2432 version
  2426     ^ '$Id: Timestamp.st 10480 2009-12-02 21:30:55Z vranyj1 $'
  2433     ^ '$Id: Timestamp.st 10501 2010-02-13 23:34:44Z vranyj1 $'
  2427 !
  2434 !
  2428 
  2435 
  2429 version_CVS
  2436 version_CVS
  2430     ^ '§Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.126 2009/10/09 07:03:39 stefan Exp §'
  2437     ^ '§Header: /cvs/stx/stx/libbasic/Timestamp.st,v 1.127 2010/02/10 17:47:27 cg Exp §'
  2431 ! !
  2438 ! !
  2432 
  2439 
  2433 Timestamp initialize!
  2440 Timestamp initialize!
  2434 
  2441 
  2435 
  2442 
  2436 
  2443 
       
  2444