---
title: "SVGSVGElement.GetCurrentTime"
url: "https://reference.aspose.com/html/java/com.aspose.html.dom.svg/svgsvgelement/getcurrenttime/"
product: "Aspose.HTML for Java API Reference"
description: "SVGSVGElement method. Returns the current time in seconds relative to the start time for the current SVG document fragment. If getCurrentTime is called before the document timeline has begun for example by script running in a script element before the documents SVGLoad event is dispatched then 0 is returned"
---

## SVGSVGElement.GetCurrentTime method

Returns the current time in seconds relative to the start time for the current SVG document fragment. If getCurrentTime is called before the document timeline has begun (for example, by script running in a ‘script’ element before the document's SVGLoad event is dispatched), then 0 is returned.

```java
public float GetCurrentTime()
```

### Return Value

The current time in seconds, or 0 if the document timeline has not yet begun.

### See Also

* class [SVGSVGElement](../)
* package [com.aspose.html.dom.svg](../../../com.aspose.html.dom.svg/)
* package [Aspose.HTML](../../../)
