Skip to content

SimpleDateFormat.format - NotImplementedError - escaping text fragment with single quotes #216

@Sciss

Description

@Sciss
import java.util.Locale
val fmt = new java.text.SimpleDateFormat("[d MMM yyyy, HH:mm''ss.SSS] 'AudioFile' ", Locale.US)
fmt.format(new java.util.Date)

This throws NotImplementedError (???). Goes away when I remove the escaped fragment 'AudioFile'.

The JDK docs are clear:

Text can be quoted using single quotes (') to avoid interpretation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions