AsDateTime

net.ruippeixotog.scalascraper.scraper.ContentParsers.AsDateTime
class AsDateTime extends AsJodaTime[DateTime]

A content parser with extra options for parsing DateTimes.

Attributes

Graph
Supertypes
class AsJodaTime[DateTime]
trait String => DateTime
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def withZone(tz: DateTimeZone): String => DateTime

Parses text content as a DateTime using a provided default time zone.

Parses text content as a DateTime using a provided default time zone.

Value parameters

tz

the default timezone to use if there is none specified in the format

Attributes

Returns

a content parser for parsing text content as a DateTime using tz as default time zone.

Inherited methods

def andThen[A](g: DateTime => A): String => A

Attributes

Inherited from:
Function1
def apply(content: String): DateTime

Attributes

Inherited from:
AsJodaTime
def compose[A](g: A => String): A => DateTime

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1